@nx/webpack 16.8.0 → 16.8.1
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 +5 -5
- package/src/utils/with-nx.js +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/webpack",
|
|
3
|
-
"version": "16.8.
|
|
3
|
+
"version": "16.8.1",
|
|
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.22.9",
|
|
33
|
-
"@nrwl/webpack": "16.8.
|
|
34
|
-
"@nx/devkit": "16.8.
|
|
35
|
-
"@nx/js": "16.8.
|
|
33
|
+
"@nrwl/webpack": "16.8.1",
|
|
34
|
+
"@nx/devkit": "16.8.1",
|
|
35
|
+
"@nx/js": "16.8.1",
|
|
36
36
|
"autoprefixer": "^10.4.9",
|
|
37
37
|
"babel-loader": "^9.1.2",
|
|
38
38
|
"browserslist": "^4.21.4",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"access": "public"
|
|
71
71
|
},
|
|
72
72
|
"type": "commonjs",
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "29a7b8575e683d3a581b4bf6f82ee4486bfa94dd"
|
|
74
74
|
}
|
package/src/utils/with-nx.js
CHANGED
|
@@ -153,6 +153,11 @@ function withNx(pluginOptions) {
|
|
|
153
153
|
process.env.NODE_ENV === 'production'
|
|
154
154
|
? process.env.NODE_ENV
|
|
155
155
|
: 'none',
|
|
156
|
+
// When target is Node, the Webpack mode will be set to 'none' which disables in memory caching and causes a full rebuild on every change.
|
|
157
|
+
// So to mitigate this we enable in memory caching when target is Node and in watch mode.
|
|
158
|
+
cache: options.target === 'node' && options.watch
|
|
159
|
+
? { type: 'memory' }
|
|
160
|
+
: undefined,
|
|
156
161
|
devtool: options.sourceMap === 'hidden'
|
|
157
162
|
? 'hidden-source-map'
|
|
158
163
|
: options.sourceMap
|