@atlaspack/packager-js 2.17.2-noselfbuild-63bde801d.0 → 2.17.2-typescript-e769947a5.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') && (0, _featureFlags().getFeatureFlag)('conditionalBundlingAsyncRuntime')) {
|
|
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') && (0, _featureFlags().getFeatureFlag)('conditionalBundlingAsyncRuntime')) {
|
|
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-
|
|
3
|
+
"version": "2.17.2-typescript-e769947a5.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-
|
|
19
|
-
"@atlaspack/feature-flags": "2.18.5-
|
|
20
|
-
"@atlaspack/plugin": "2.14.18-
|
|
21
|
-
"@atlaspack/rust": "3.4.1-
|
|
22
|
-
"@atlaspack/types": "2.15.8-
|
|
23
|
-
"@atlaspack/utils": "2.16.2-
|
|
18
|
+
"@atlaspack/diagnostic": "2.14.2-typescript-e769947a5.0",
|
|
19
|
+
"@atlaspack/feature-flags": "2.18.5-typescript-e769947a5.0",
|
|
20
|
+
"@atlaspack/plugin": "2.14.18-typescript-e769947a5.0",
|
|
21
|
+
"@atlaspack/rust": "3.4.1-typescript-e769947a5.0",
|
|
22
|
+
"@atlaspack/types": "2.15.8-typescript-e769947a5.0",
|
|
23
|
+
"@atlaspack/utils": "2.16.2-typescript-e769947a5.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": "e769947a5b0c22d9477211ac1ce6614e6bf9def3"
|
|
31
31
|
}
|
|
@@ -293,7 +293,10 @@ export class ScopeHoistingPackager {
|
|
|
293
293
|
|
|
294
294
|
let hasConditionalReference = false;
|
|
295
295
|
let isConditionalBundle = false;
|
|
296
|
-
if (
|
|
296
|
+
if (
|
|
297
|
+
getFeatureFlag('conditionalBundlingApi') &&
|
|
298
|
+
getFeatureFlag('conditionalBundlingAsyncRuntime')
|
|
299
|
+
) {
|
|
297
300
|
// If the bundle has a conditional bundle reference (has an importCond)
|
|
298
301
|
hasConditionalReference =
|
|
299
302
|
this.bundleGraph.getReferencedConditionalBundles(bundle).length > 0;
|
|
@@ -319,7 +322,10 @@ export class ScopeHoistingPackager {
|
|
|
319
322
|
.map((b) => b.publicId);
|
|
320
323
|
|
|
321
324
|
const conditions = [];
|
|
322
|
-
if (
|
|
325
|
+
if (
|
|
326
|
+
getFeatureFlag('conditionalBundlingApi') &&
|
|
327
|
+
getFeatureFlag('conditionalBundlingAsyncRuntime')
|
|
328
|
+
) {
|
|
323
329
|
const conditionSet = this.bundleGraph
|
|
324
330
|
.getConditionalBundleMapping()
|
|
325
331
|
.get(bundle.id);
|