@nx/rspack 21.1.0 → 21.1.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/rspack",
|
|
3
3
|
"description": "The Nx Plugin for Rspack contains executors and generators that support building applications using Rspack.",
|
|
4
|
-
"version": "21.1.
|
|
4
|
+
"version": "21.1.1",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"generators": "./generators.json",
|
|
25
25
|
"executors": "./executors.json",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@nx/js": "21.1.
|
|
28
|
-
"@nx/devkit": "21.1.
|
|
29
|
-
"@nx/web": "21.1.
|
|
30
|
-
"@nx/module-federation": "21.1.
|
|
27
|
+
"@nx/js": "21.1.1",
|
|
28
|
+
"@nx/devkit": "21.1.1",
|
|
29
|
+
"@nx/web": "21.1.1",
|
|
30
|
+
"@nx/module-federation": "21.1.1",
|
|
31
31
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
32
32
|
"@rspack/core": "^1.3.8",
|
|
33
33
|
"@rspack/dev-server": "^1.1.1",
|
|
@@ -37,6 +37,7 @@ function applyBaseConfig(options, config = {}, { useNormalizedEntry, } = {}) {
|
|
|
37
37
|
}
|
|
38
38
|
function applyNxIndependentConfig(options, config) {
|
|
39
39
|
const isProd = process.env.NODE_ENV === 'production' || options.mode === 'production';
|
|
40
|
+
const isDevServer = process.env['WEBPACK_SERVE'];
|
|
40
41
|
const hashFormat = (0, hash_format_1.getOutputHashFormat)(options.outputHashing);
|
|
41
42
|
config.context = path.join(options.root, options.projectRoot);
|
|
42
43
|
config.target ??= options.target;
|
|
@@ -133,6 +134,9 @@ function applyNxIndependentConfig(options, config) {
|
|
|
133
134
|
}),
|
|
134
135
|
],
|
|
135
136
|
concatenateModules: true,
|
|
137
|
+
runtimeChunk: isDevServer
|
|
138
|
+
? config.optimization?.runtimeChunk ?? undefined
|
|
139
|
+
: false,
|
|
136
140
|
};
|
|
137
141
|
config.stats = {
|
|
138
142
|
hash: true,
|