@atlaspack/transformer-js 3.3.5-alshintegrationtestslib.0 → 3.3.5-dev-11ca1abe5.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.
- package/lib/JSTransformer.js +2 -6
- package/package.json +8 -8
package/lib/JSTransformer.js
CHANGED
|
@@ -313,9 +313,6 @@ var _default = exports.default = new (_plugin().Transformer)({
|
|
|
313
313
|
if (options.env.NODE_ENV != null) {
|
|
314
314
|
env.NODE_ENV = options.env.NODE_ENV;
|
|
315
315
|
}
|
|
316
|
-
if (process.env.ATLASPACK_BUILD_ENV === 'test') {
|
|
317
|
-
env.ATLASPACK_BUILD_ENV = 'test';
|
|
318
|
-
}
|
|
319
316
|
} else if (Array.isArray(config === null || config === void 0 ? void 0 : config.inlineEnvironment)) {
|
|
320
317
|
for (let match of (0, _utils().globMatch)(Object.keys(options.env), config.inlineEnvironment)) {
|
|
321
318
|
env[match] = String(options.env[match]);
|
|
@@ -410,7 +407,7 @@ var _default = exports.default = new (_plugin().Transformer)({
|
|
|
410
407
|
}
|
|
411
408
|
try {
|
|
412
409
|
if (typeof mod[exportName] === 'function') {
|
|
413
|
-
|
|
410
|
+
return mod[exportName].apply({
|
|
414
411
|
// Allows macros to emit additional assets to add as dependencies (e.g. css).
|
|
415
412
|
addAsset(a) {
|
|
416
413
|
let k = String(macroAssets.length);
|
|
@@ -469,8 +466,7 @@ var _default = exports.default = new (_plugin().Transformer)({
|
|
|
469
466
|
invalidateOnBuild() {
|
|
470
467
|
asset.invalidateOnBuild();
|
|
471
468
|
}
|
|
472
|
-
};
|
|
473
|
-
return mod[exportName].apply(ctx, args);
|
|
469
|
+
}, args);
|
|
474
470
|
} else {
|
|
475
471
|
throw new Error(`"${exportName}" in "${src}" is not a function.`);
|
|
476
472
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/transformer-js",
|
|
3
|
-
"version": "3.3.5-
|
|
3
|
+
"version": "3.3.5-dev-11ca1abe5.0",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
"src"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@atlaspack/diagnostic": "2.14.2-
|
|
26
|
-
"@atlaspack/feature-flags": "2.18.3-
|
|
27
|
-
"@atlaspack/plugin": "2.14.15-
|
|
28
|
-
"@atlaspack/rust": "3.3.6-
|
|
29
|
-
"@atlaspack/utils": "2.15.3-
|
|
30
|
-
"@atlaspack/workers": "2.14.15-
|
|
25
|
+
"@atlaspack/diagnostic": "2.14.2-dev-11ca1abe5.0",
|
|
26
|
+
"@atlaspack/feature-flags": "2.18.3-dev-11ca1abe5.0",
|
|
27
|
+
"@atlaspack/plugin": "2.14.15-dev-11ca1abe5.0",
|
|
28
|
+
"@atlaspack/rust": "3.3.6-dev-11ca1abe5.0",
|
|
29
|
+
"@atlaspack/utils": "2.15.3-dev-11ca1abe5.0",
|
|
30
|
+
"@atlaspack/workers": "2.14.15-dev-11ca1abe5.0",
|
|
31
31
|
"@parcel/source-map": "^2.1.1",
|
|
32
32
|
"@swc/helpers": "^0.5.15",
|
|
33
33
|
"browserslist": "^4.6.6",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"@atlaspack/core": "^2.13.1"
|
|
40
40
|
},
|
|
41
41
|
"type": "commonjs",
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "11ca1abe57b7f32f4de72b1108b94cd7a8905e9a"
|
|
43
43
|
}
|