@nx/webpack 16.4.0-beta.3 → 16.4.0-beta.4
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/package.json +6 -6
- package/src/utils/with-nx.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/webpack",
|
|
3
|
-
"version": "16.4.0-beta.
|
|
3
|
+
"version": "16.4.0-beta.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for Webpack contains executors and generators that support building applications using Webpack.",
|
|
6
6
|
"repository": {
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@babel/core": "^7.15.0",
|
|
33
|
-
"@nrwl/webpack": "16.4.0-beta.
|
|
34
|
-
"@nx/devkit": "16.4.0-beta.
|
|
35
|
-
"@nx/js": "16.4.0-beta.
|
|
33
|
+
"@nrwl/webpack": "16.4.0-beta.4",
|
|
34
|
+
"@nx/devkit": "16.4.0-beta.4",
|
|
35
|
+
"@nx/js": "16.4.0-beta.4",
|
|
36
36
|
"autoprefixer": "^10.4.9",
|
|
37
37
|
"babel-loader": "^9.1.2",
|
|
38
38
|
"chalk": "^4.1.0",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"sass-loader": "^12.2.0",
|
|
59
59
|
"source-map-loader": "^3.0.0",
|
|
60
60
|
"style-loader": "^3.3.0",
|
|
61
|
-
"stylus": "^0.
|
|
61
|
+
"stylus": "^0.59.0",
|
|
62
62
|
"stylus-loader": "^7.1.0",
|
|
63
63
|
"terser-webpack-plugin": "^5.3.3",
|
|
64
64
|
"ts-loader": "^9.3.1",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"access": "public"
|
|
76
76
|
},
|
|
77
77
|
"types": "./index.d.ts",
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "82c14a87a70ab507d5d2eed1522948fcc326adf4"
|
|
79
79
|
}
|
package/src/utils/with-nx.js
CHANGED
|
@@ -215,7 +215,7 @@ function withNx(pluginOptions) {
|
|
|
215
215
|
}
|
|
216
216
|
exports.withNx = withNx;
|
|
217
217
|
function createLoaderFromCompiler(options) {
|
|
218
|
-
var _a, _b;
|
|
218
|
+
var _a, _b, _c;
|
|
219
219
|
switch (options.compiler) {
|
|
220
220
|
case 'swc':
|
|
221
221
|
return {
|
|
@@ -267,7 +267,7 @@ function createLoaderFromCompiler(options) {
|
|
|
267
267
|
cwd: path.join(options.root, options.sourceRoot),
|
|
268
268
|
emitDecoratorMetadata: tsConfig.options.emitDecoratorMetadata,
|
|
269
269
|
isModern: true,
|
|
270
|
-
envName: process.env.NODE_ENV,
|
|
270
|
+
envName: (_a = process.env.BABEL_ENV) !== null && _a !== void 0 ? _a : process.env.NODE_ENV,
|
|
271
271
|
cacheDirectory: true,
|
|
272
272
|
cacheCompression: false,
|
|
273
273
|
},
|
|
@@ -278,7 +278,7 @@ function createLoaderFromCompiler(options) {
|
|
|
278
278
|
}
|
|
279
279
|
else {
|
|
280
280
|
babelConfig.options['configFile'] =
|
|
281
|
-
(
|
|
281
|
+
(_c = (_b = babelConfig.options) === null || _b === void 0 ? void 0 : _b['babelConfig']) !== null && _c !== void 0 ? _c : path.join(options.root, options.projectRoot, '.babelrc');
|
|
282
282
|
}
|
|
283
283
|
return babelConfig;
|
|
284
284
|
default:
|