@atlaspack/transformer-js 3.2.3-canary.241 → 3.2.3-canary.243
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/JSTransformer.js +1 -7
- package/package.json +8 -8
- package/src/JSTransformer.ts +1 -8
package/lib/JSTransformer.js
CHANGED
|
@@ -538,13 +538,7 @@ var _default = exports.default = new (_plugin().Transformer)({
|
|
|
538
538
|
} : null
|
|
539
539
|
});
|
|
540
540
|
if ((0, _featureFlags().getFeatureFlag)('conditionalBundlingApi')) {
|
|
541
|
-
asset.meta.conditions = conditions
|
|
542
|
-
// @ts-expect-error TS7006
|
|
543
|
-
c => ({
|
|
544
|
-
key: c.key,
|
|
545
|
-
ifTruePlaceholder: c.if_true_placeholder,
|
|
546
|
-
ifFalsePlaceholder: c.if_false_placeholder
|
|
547
|
-
}));
|
|
541
|
+
asset.meta.conditions = conditions;
|
|
548
542
|
}
|
|
549
543
|
if (is_constant_module) {
|
|
550
544
|
asset.meta.isConstantModule = true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/transformer-js",
|
|
3
|
-
"version": "3.2.3-canary.
|
|
3
|
+
"version": "3.2.3-canary.243+a52f06457",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"src"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@atlaspack/diagnostic": "2.14.1-canary.
|
|
28
|
-
"@atlaspack/feature-flags": "2.14.1-canary.
|
|
29
|
-
"@atlaspack/plugin": "2.14.5-canary.
|
|
30
|
-
"@atlaspack/rust": "3.2.1-canary.
|
|
31
|
-
"@atlaspack/utils": "2.14.5-canary.
|
|
32
|
-
"@atlaspack/workers": "2.14.5-canary.
|
|
27
|
+
"@atlaspack/diagnostic": "2.14.1-canary.311+a52f06457",
|
|
28
|
+
"@atlaspack/feature-flags": "2.14.1-canary.311+a52f06457",
|
|
29
|
+
"@atlaspack/plugin": "2.14.5-canary.243+a52f06457",
|
|
30
|
+
"@atlaspack/rust": "3.2.1-canary.243+a52f06457",
|
|
31
|
+
"@atlaspack/utils": "2.14.5-canary.243+a52f06457",
|
|
32
|
+
"@atlaspack/workers": "2.14.5-canary.243+a52f06457",
|
|
33
33
|
"@parcel/source-map": "^2.1.1",
|
|
34
34
|
"@swc/helpers": "^0.5.15",
|
|
35
35
|
"browserslist": "^4.6.6",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"@atlaspack/core": "2.25.1"
|
|
42
42
|
},
|
|
43
43
|
"type": "commonjs",
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "a52f06457494d95810f048e2719a8467bc73f53d"
|
|
45
45
|
}
|
package/src/JSTransformer.ts
CHANGED
|
@@ -645,14 +645,7 @@ export default new Transformer({
|
|
|
645
645
|
});
|
|
646
646
|
|
|
647
647
|
if (getFeatureFlag('conditionalBundlingApi')) {
|
|
648
|
-
asset.meta.conditions = conditions
|
|
649
|
-
// @ts-expect-error TS7006
|
|
650
|
-
(c): ConditionMeta => ({
|
|
651
|
-
key: c.key,
|
|
652
|
-
ifTruePlaceholder: c.if_true_placeholder,
|
|
653
|
-
ifFalsePlaceholder: c.if_false_placeholder,
|
|
654
|
-
}),
|
|
655
|
-
);
|
|
648
|
+
asset.meta.conditions = conditions;
|
|
656
649
|
}
|
|
657
650
|
|
|
658
651
|
if (is_constant_module) {
|