@atlaspack/transformer-js 3.2.3-canary.211 → 3.2.3-canary.213
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 +3 -1
- package/package.json +8 -8
- package/src/JSTransformer.ts +3 -1
package/lib/JSTransformer.js
CHANGED
|
@@ -484,7 +484,9 @@ var _default = exports.default = new (_plugin().Transformer)({
|
|
|
484
484
|
// @ts-expect-error TS2345
|
|
485
485
|
map.extends(originalMap);
|
|
486
486
|
} else {
|
|
487
|
-
|
|
487
|
+
if (!(0, _featureFlags().getFeatureFlag)('omitSourcesContentInMemory')) {
|
|
488
|
+
map.setSourceContent(asset.filePath, code.toString());
|
|
489
|
+
}
|
|
488
490
|
}
|
|
489
491
|
}
|
|
490
492
|
macroAssets.push({
|
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.213+435039b1a",
|
|
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.281+435039b1a",
|
|
28
|
+
"@atlaspack/feature-flags": "2.14.1-canary.281+435039b1a",
|
|
29
|
+
"@atlaspack/plugin": "2.14.5-canary.213+435039b1a",
|
|
30
|
+
"@atlaspack/rust": "3.2.1-canary.213+435039b1a",
|
|
31
|
+
"@atlaspack/utils": "2.14.5-canary.213+435039b1a",
|
|
32
|
+
"@atlaspack/workers": "2.14.5-canary.213+435039b1a",
|
|
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.24.2"
|
|
42
42
|
},
|
|
43
43
|
"type": "commonjs",
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "435039b1a48af4d57b238f178669b5db65ab5af7"
|
|
45
45
|
}
|
package/src/JSTransformer.ts
CHANGED
|
@@ -584,7 +584,9 @@ export default new Transformer({
|
|
|
584
584
|
// @ts-expect-error TS2345
|
|
585
585
|
map.extends(originalMap);
|
|
586
586
|
} else {
|
|
587
|
-
|
|
587
|
+
if (!getFeatureFlag('omitSourcesContentInMemory')) {
|
|
588
|
+
map.setSourceContent(asset.filePath, code.toString());
|
|
589
|
+
}
|
|
588
590
|
}
|
|
589
591
|
}
|
|
590
592
|
|