@parcel/packager-js 2.8.1 → 2.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -127,6 +127,9 @@ class DevPackager {
127
127
  deps[(0, _utils2.getSpecifier)(dep)] = false;
128
128
  } else if (resolved) {
129
129
  deps[(0, _utils2.getSpecifier)(dep)] = this.bundleGraph.getAssetPublicId(resolved);
130
+ } else {
131
+ // An external module - map placeholder to original specifier.
132
+ deps[(0, _utils2.getSpecifier)(dep)] = dep.specifier;
130
133
  }
131
134
  }
132
135
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcel/packager-js",
3
- "version": "2.8.1",
3
+ "version": "2.8.2",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -17,16 +17,16 @@
17
17
  "source": "src/index.js",
18
18
  "engines": {
19
19
  "node": ">= 12.0.0",
20
- "parcel": "^2.8.1"
20
+ "parcel": "^2.8.2"
21
21
  },
22
22
  "dependencies": {
23
- "@parcel/diagnostic": "2.8.1",
24
- "@parcel/hash": "2.8.1",
25
- "@parcel/plugin": "2.8.1",
23
+ "@parcel/diagnostic": "2.8.2",
24
+ "@parcel/hash": "2.8.2",
25
+ "@parcel/plugin": "2.8.2",
26
26
  "@parcel/source-map": "^2.1.1",
27
- "@parcel/utils": "2.8.1",
27
+ "@parcel/utils": "2.8.2",
28
28
  "globals": "^13.2.0",
29
29
  "nullthrows": "^1.1.1"
30
30
  },
31
- "gitHead": "f8d3fc30ca5b33d8f8674525f2a741d662c5986a"
31
+ "gitHead": "3437f64e4c6f57d911614c480b742e229149f200"
32
32
  }
@@ -106,6 +106,9 @@ export class DevPackager {
106
106
  } else if (resolved) {
107
107
  deps[getSpecifier(dep)] =
108
108
  this.bundleGraph.getAssetPublicId(resolved);
109
+ } else {
110
+ // An external module - map placeholder to original specifier.
111
+ deps[getSpecifier(dep)] = dep.specifier;
109
112
  }
110
113
  }
111
114