@atlaspack/packager-js 2.17.2-noselfbuild-4bb690920.0 → 2.17.2-noselfbuild-8163359c1.0
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.
|
@@ -247,7 +247,7 @@ class ScopeHoistingPackager {
|
|
|
247
247
|
let hasHtmlReference = referencingBundles.some(b => b.type === 'html');
|
|
248
248
|
let hasConditionalReference = false;
|
|
249
249
|
let isConditionalBundle = false;
|
|
250
|
-
if ((0, _featureFlags().getFeatureFlag)('conditionalBundlingApi')
|
|
250
|
+
if ((0, _featureFlags().getFeatureFlag)('conditionalBundlingApi')) {
|
|
251
251
|
// If the bundle has a conditional bundle reference (has an importCond)
|
|
252
252
|
hasConditionalReference = this.bundleGraph.getReferencedConditionalBundles(bundle).length > 0;
|
|
253
253
|
// If the bundle is a conditional bundle
|
|
@@ -258,7 +258,7 @@ class ScopeHoistingPackager {
|
|
|
258
258
|
runWhenReady(bundle, codeToRun) {
|
|
259
259
|
let deps = this.bundleGraph.getReferencedBundles(bundle).filter(b => this.shouldBundleQueue(b)).map(b => b.publicId);
|
|
260
260
|
const conditions = [];
|
|
261
|
-
if ((0, _featureFlags().getFeatureFlag)('conditionalBundlingApi')
|
|
261
|
+
if ((0, _featureFlags().getFeatureFlag)('conditionalBundlingApi')) {
|
|
262
262
|
const conditionSet = this.bundleGraph.getConditionalBundleMapping().get(bundle.id);
|
|
263
263
|
for (const [key, {
|
|
264
264
|
ifTrueBundles,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/packager-js",
|
|
3
|
-
"version": "2.17.2-noselfbuild-
|
|
3
|
+
"version": "2.17.2-noselfbuild-8163359c1.0",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -15,17 +15,17 @@
|
|
|
15
15
|
"node": ">= 16.0.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@atlaspack/diagnostic": "2.14.2-noselfbuild-
|
|
19
|
-
"@atlaspack/feature-flags": "2.18.5-noselfbuild-
|
|
20
|
-
"@atlaspack/plugin": "2.14.18-noselfbuild-
|
|
21
|
-
"@atlaspack/rust": "3.4.1-noselfbuild-
|
|
22
|
-
"@atlaspack/types": "2.15.8-noselfbuild-
|
|
23
|
-
"@atlaspack/utils": "2.16.2-noselfbuild-
|
|
18
|
+
"@atlaspack/diagnostic": "2.14.2-noselfbuild-8163359c1.0",
|
|
19
|
+
"@atlaspack/feature-flags": "2.18.5-noselfbuild-8163359c1.0",
|
|
20
|
+
"@atlaspack/plugin": "2.14.18-noselfbuild-8163359c1.0",
|
|
21
|
+
"@atlaspack/rust": "3.4.1-noselfbuild-8163359c1.0",
|
|
22
|
+
"@atlaspack/types": "2.15.8-noselfbuild-8163359c1.0",
|
|
23
|
+
"@atlaspack/utils": "2.16.2-noselfbuild-8163359c1.0",
|
|
24
24
|
"@parcel/source-map": "^2.1.1",
|
|
25
25
|
"globals": "^13.2.0",
|
|
26
26
|
"nullthrows": "^1.1.1",
|
|
27
27
|
"outdent": "^0.8.0"
|
|
28
28
|
},
|
|
29
29
|
"type": "commonjs",
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "8163359c1a8d316bfd4ca81f9f13f94bc5963fe9"
|
|
31
31
|
}
|
|
@@ -293,10 +293,7 @@ export class ScopeHoistingPackager {
|
|
|
293
293
|
|
|
294
294
|
let hasConditionalReference = false;
|
|
295
295
|
let isConditionalBundle = false;
|
|
296
|
-
if (
|
|
297
|
-
getFeatureFlag('conditionalBundlingApi') &&
|
|
298
|
-
getFeatureFlag('conditionalBundlingAsyncRuntime')
|
|
299
|
-
) {
|
|
296
|
+
if (getFeatureFlag('conditionalBundlingApi')) {
|
|
300
297
|
// If the bundle has a conditional bundle reference (has an importCond)
|
|
301
298
|
hasConditionalReference =
|
|
302
299
|
this.bundleGraph.getReferencedConditionalBundles(bundle).length > 0;
|
|
@@ -322,10 +319,7 @@ export class ScopeHoistingPackager {
|
|
|
322
319
|
.map((b) => b.publicId);
|
|
323
320
|
|
|
324
321
|
const conditions = [];
|
|
325
|
-
if (
|
|
326
|
-
getFeatureFlag('conditionalBundlingApi') &&
|
|
327
|
-
getFeatureFlag('conditionalBundlingAsyncRuntime')
|
|
328
|
-
) {
|
|
322
|
+
if (getFeatureFlag('conditionalBundlingApi')) {
|
|
329
323
|
const conditionSet = this.bundleGraph
|
|
330
324
|
.getConditionalBundleMapping()
|
|
331
325
|
.get(bundle.id);
|