@parcel/packager-js 2.0.0-nightly.1134 → 2.0.0-nightly.1135

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.
@@ -567,7 +567,8 @@ ${code}
567
567
  let replacements = new Map();
568
568
 
569
569
  for (let dep of deps) {
570
- depMap.set(`${assetId}:${(0, _utils2.getSpecifier)(dep)}`, dep);
570
+ let specifierType = dep.specifierType === 'esm' ? `:${dep.specifierType}` : '';
571
+ depMap.set(`${assetId}:${(0, _utils2.getSpecifier)(dep)}${!dep.meta.placeholder ? specifierType : ''}`, dep);
571
572
  let asyncResolution = this.bundleGraph.resolveAsyncDependency(dep, this.bundle);
572
573
  let resolved = (asyncResolution === null || asyncResolution === void 0 ? void 0 : asyncResolution.type) === 'asset' ? // Prefer the underlying asset over a runtime to load it. It will
573
574
  // be wrapped in Promise.resolve() later.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcel/packager-js",
3
- "version": "2.0.0-nightly.1134+1beacec79",
3
+ "version": "2.0.0-nightly.1135+99cf50510",
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.0.0-nightly.1132+1beacec79"
20
+ "parcel": "2.0.0-nightly.1133+99cf50510"
21
21
  },
22
22
  "dependencies": {
23
- "@parcel/diagnostic": "2.0.0-nightly.1134+1beacec79",
24
- "@parcel/hash": "2.6.3-nightly.2757+1beacec79",
25
- "@parcel/plugin": "2.0.0-nightly.1134+1beacec79",
23
+ "@parcel/diagnostic": "2.0.0-nightly.1135+99cf50510",
24
+ "@parcel/hash": "2.6.3-nightly.2758+99cf50510",
25
+ "@parcel/plugin": "2.0.0-nightly.1135+99cf50510",
26
26
  "@parcel/source-map": "^2.0.0",
27
- "@parcel/utils": "2.0.0-nightly.1134+1beacec79",
27
+ "@parcel/utils": "2.0.0-nightly.1135+99cf50510",
28
28
  "globals": "^13.2.0",
29
29
  "nullthrows": "^1.1.1"
30
30
  },
31
- "gitHead": "1beacec795dc350c180d6762011d859bc74c2ad6"
31
+ "gitHead": "99cf50510995112722f76f115dc7f2fd21587f34"
32
32
  }
@@ -581,7 +581,14 @@ ${code}
581
581
  let depMap = new Map();
582
582
  let replacements = new Map();
583
583
  for (let dep of deps) {
584
- depMap.set(`${assetId}:${getSpecifier(dep)}`, dep);
584
+ let specifierType =
585
+ dep.specifierType === 'esm' ? `:${dep.specifierType}` : '';
586
+ depMap.set(
587
+ `${assetId}:${getSpecifier(dep)}${
588
+ !dep.meta.placeholder ? specifierType : ''
589
+ }`,
590
+ dep,
591
+ );
585
592
 
586
593
  let asyncResolution = this.bundleGraph.resolveAsyncDependency(
587
594
  dep,