@atlaspack/core 2.14.1-canary.21 → 2.14.1-canary.22

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.
@@ -262,12 +262,13 @@ class BundleGraph {
262
262
  ifFalseBundles.push(...depToBundles(cond.ifFalseDependency));
263
263
  }
264
264
  for (let bundle of bundles) {
265
- const conditions = bundleConditions.get(bundle) ?? new Map();
265
+ const conditions = bundleConditions.get(bundle.id) ?? new Map();
266
266
  conditions.set(cond.key, {
267
+ bundle,
267
268
  ifTrueBundles,
268
269
  ifFalseBundles
269
270
  });
270
- bundleConditions.set(bundle, conditions);
271
+ bundleConditions.set(bundle.id, conditions);
271
272
  }
272
273
  }
273
274
  return bundleConditions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/core",
3
- "version": "2.14.1-canary.21+570493bea",
3
+ "version": "2.14.1-canary.22+e1422ad0a",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -20,21 +20,21 @@
20
20
  "check-ts": "tsc --noEmit index.d.ts"
21
21
  },
22
22
  "dependencies": {
23
- "@atlaspack/build-cache": "2.13.3-canary.21+570493bea",
24
- "@atlaspack/cache": "2.13.3-canary.21+570493bea",
25
- "@atlaspack/diagnostic": "2.14.1-canary.21+570493bea",
26
- "@atlaspack/events": "2.14.1-canary.21+570493bea",
27
- "@atlaspack/feature-flags": "2.14.1-canary.21+570493bea",
28
- "@atlaspack/fs": "2.14.1-canary.21+570493bea",
29
- "@atlaspack/graph": "3.4.1-canary.21+570493bea",
30
- "@atlaspack/logger": "2.14.1-canary.21+570493bea",
31
- "@atlaspack/package-manager": "2.14.1-canary.21+570493bea",
32
- "@atlaspack/plugin": "2.14.1-canary.21+570493bea",
33
- "@atlaspack/profiler": "2.14.1-canary.21+570493bea",
34
- "@atlaspack/rust": "3.0.1-canary.21+570493bea",
35
- "@atlaspack/types": "2.14.1-canary.21+570493bea",
36
- "@atlaspack/utils": "2.14.1-canary.21+570493bea",
37
- "@atlaspack/workers": "2.14.1-canary.21+570493bea",
23
+ "@atlaspack/build-cache": "2.13.3-canary.22+e1422ad0a",
24
+ "@atlaspack/cache": "2.13.3-canary.22+e1422ad0a",
25
+ "@atlaspack/diagnostic": "2.14.1-canary.22+e1422ad0a",
26
+ "@atlaspack/events": "2.14.1-canary.22+e1422ad0a",
27
+ "@atlaspack/feature-flags": "2.14.1-canary.22+e1422ad0a",
28
+ "@atlaspack/fs": "2.14.1-canary.22+e1422ad0a",
29
+ "@atlaspack/graph": "3.4.1-canary.22+e1422ad0a",
30
+ "@atlaspack/logger": "2.14.1-canary.22+e1422ad0a",
31
+ "@atlaspack/package-manager": "2.14.1-canary.22+e1422ad0a",
32
+ "@atlaspack/plugin": "2.14.1-canary.22+e1422ad0a",
33
+ "@atlaspack/profiler": "2.14.1-canary.22+e1422ad0a",
34
+ "@atlaspack/rust": "3.0.1-canary.22+e1422ad0a",
35
+ "@atlaspack/types": "2.14.1-canary.22+e1422ad0a",
36
+ "@atlaspack/utils": "2.14.1-canary.22+e1422ad0a",
37
+ "@atlaspack/workers": "2.14.1-canary.22+e1422ad0a",
38
38
  "@mischnic/json-sourcemap": "^0.1.0",
39
39
  "@parcel/source-map": "^2.1.1",
40
40
  "base-x": "^3.0.8",
@@ -67,5 +67,5 @@
67
67
  "./src/serializerCore.js": "./src/serializerCore.browser.js"
68
68
  },
69
69
  "type": "commonjs",
70
- "gitHead": "570493beaf754e7985aebc7daaaf6dfcfa8fe56b"
70
+ "gitHead": "e1422ad0a801faaa4bc4f1023bed042ffe236e9b"
71
71
  }
@@ -444,10 +444,11 @@ export default class BundleGraph<TBundle: IBundle>
444
444
  // be used by a webserver to understand which conditions are used by which bundles,
445
445
  // and which bundles those conditions require depending on what they evaluate to.
446
446
  getConditionalBundleMapping(): Map<
447
- TBundle,
447
+ string,
448
448
  Map<
449
449
  string,
450
450
  {|
451
+ bundle: TBundle,
451
452
  ifTrueBundles: Array<TBundle>,
452
453
  ifFalseBundles: Array<TBundle>,
453
454
  |},
@@ -486,14 +487,15 @@ export default class BundleGraph<TBundle: IBundle>
486
487
  }
487
488
 
488
489
  for (let bundle of bundles) {
489
- const conditions = bundleConditions.get(bundle) ?? new Map();
490
+ const conditions = bundleConditions.get(bundle.id) ?? new Map();
490
491
 
491
492
  conditions.set(cond.key, {
493
+ bundle,
492
494
  ifTrueBundles,
493
495
  ifFalseBundles,
494
496
  });
495
497
 
496
- bundleConditions.set(bundle, conditions);
498
+ bundleConditions.set(bundle.id, conditions);
497
499
  }
498
500
  }
499
501