@atlaspack/core 2.14.1-canary.21 → 2.14.1-canary.23
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.
- package/lib/public/BundleGraph.js +3 -2
- package/package.json +17 -17
- package/src/public/BundleGraph.js +5 -3
|
@@ -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.
|
|
3
|
+
"version": "2.14.1-canary.23+88a0dd890",
|
|
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.
|
|
24
|
-
"@atlaspack/cache": "2.13.3-canary.
|
|
25
|
-
"@atlaspack/diagnostic": "2.14.1-canary.
|
|
26
|
-
"@atlaspack/events": "2.14.1-canary.
|
|
27
|
-
"@atlaspack/feature-flags": "2.14.1-canary.
|
|
28
|
-
"@atlaspack/fs": "2.14.1-canary.
|
|
29
|
-
"@atlaspack/graph": "3.4.1-canary.
|
|
30
|
-
"@atlaspack/logger": "2.14.1-canary.
|
|
31
|
-
"@atlaspack/package-manager": "2.14.1-canary.
|
|
32
|
-
"@atlaspack/plugin": "2.14.1-canary.
|
|
33
|
-
"@atlaspack/profiler": "2.14.1-canary.
|
|
34
|
-
"@atlaspack/rust": "3.0.1-canary.
|
|
35
|
-
"@atlaspack/types": "2.14.1-canary.
|
|
36
|
-
"@atlaspack/utils": "2.14.1-canary.
|
|
37
|
-
"@atlaspack/workers": "2.14.1-canary.
|
|
23
|
+
"@atlaspack/build-cache": "2.13.3-canary.23+88a0dd890",
|
|
24
|
+
"@atlaspack/cache": "2.13.3-canary.23+88a0dd890",
|
|
25
|
+
"@atlaspack/diagnostic": "2.14.1-canary.23+88a0dd890",
|
|
26
|
+
"@atlaspack/events": "2.14.1-canary.23+88a0dd890",
|
|
27
|
+
"@atlaspack/feature-flags": "2.14.1-canary.23+88a0dd890",
|
|
28
|
+
"@atlaspack/fs": "2.14.1-canary.23+88a0dd890",
|
|
29
|
+
"@atlaspack/graph": "3.4.1-canary.23+88a0dd890",
|
|
30
|
+
"@atlaspack/logger": "2.14.1-canary.23+88a0dd890",
|
|
31
|
+
"@atlaspack/package-manager": "2.14.1-canary.23+88a0dd890",
|
|
32
|
+
"@atlaspack/plugin": "2.14.1-canary.23+88a0dd890",
|
|
33
|
+
"@atlaspack/profiler": "2.14.1-canary.23+88a0dd890",
|
|
34
|
+
"@atlaspack/rust": "3.0.1-canary.23+88a0dd890",
|
|
35
|
+
"@atlaspack/types": "2.14.1-canary.23+88a0dd890",
|
|
36
|
+
"@atlaspack/utils": "2.14.1-canary.23+88a0dd890",
|
|
37
|
+
"@atlaspack/workers": "2.14.1-canary.23+88a0dd890",
|
|
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": "
|
|
70
|
+
"gitHead": "88a0dd8905c60366bcfc6d44a374ca5ddb6be21e"
|
|
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
|
-
|
|
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
|
|