@nx/rspack 20.7.0 → 20.7.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": "20.7.
|
|
4
|
+
"version": "20.7.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": "20.7.
|
|
28
|
-
"@nx/devkit": "20.7.
|
|
29
|
-
"@nx/web": "20.7.
|
|
30
|
-
"@nx/module-federation": "20.7.
|
|
27
|
+
"@nx/js": "20.7.1",
|
|
28
|
+
"@nx/devkit": "20.7.1",
|
|
29
|
+
"@nx/web": "20.7.1",
|
|
30
|
+
"@nx/module-federation": "20.7.1",
|
|
31
31
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
32
32
|
"@rspack/core": "^1.1.5",
|
|
33
33
|
"@rspack/dev-server": "^1.0.9",
|
|
@@ -31,8 +31,7 @@ function getDevServerOptions(root, serveOptions, buildOptions) {
|
|
|
31
31
|
htmlAcceptHeaders: ['text/html', 'application/xhtml+xml'],
|
|
32
32
|
},
|
|
33
33
|
onListening(server) {
|
|
34
|
-
const isHttps = server.options.https
|
|
35
|
-
server.options.server?.type === 'https';
|
|
34
|
+
const isHttps = server.options.server?.type === 'https';
|
|
36
35
|
devkit_1.logger.info(`NX Web Development Server is listening at ${isHttps ? 'https' : 'http'}://${server.options.host}:${server.options.port}${(0, serve_path_1.buildServePath)(buildOptions)}`);
|
|
37
36
|
},
|
|
38
37
|
open: false,
|
|
@@ -33,6 +33,10 @@ class NxAppRspackPlugin {
|
|
|
33
33
|
Object.keys(compiler.options.entry['main']).length === 0) {
|
|
34
34
|
compiler.options.entry = {};
|
|
35
35
|
}
|
|
36
|
+
// Prefer `clean` option from Rspack config over our own.
|
|
37
|
+
if (typeof compiler.options.output.clean !== 'undefined') {
|
|
38
|
+
this.options.deleteOutputPath = false;
|
|
39
|
+
}
|
|
36
40
|
(0, apply_base_config_1.applyBaseConfig)(this.options, compiler.options, {
|
|
37
41
|
useNormalizedEntry: true,
|
|
38
42
|
});
|
|
@@ -88,7 +88,7 @@ function applyNxIndependentConfig(options, config) {
|
|
|
88
88
|
hashFunction: config.output?.hashFunction ?? 'xxhash64',
|
|
89
89
|
// Disabled for performance
|
|
90
90
|
pathinfo: config.output?.pathinfo ?? false,
|
|
91
|
-
clean: options.deleteOutputPath,
|
|
91
|
+
clean: config.output?.clean ?? options.deleteOutputPath,
|
|
92
92
|
};
|
|
93
93
|
config.watch = options.watch;
|
|
94
94
|
config.watchOptions = {
|
|
@@ -184,8 +184,11 @@ function applyNxDependentConfig(options, config, { useNormalizedEntry } = {}) {
|
|
|
184
184
|
if (options.useTsconfigPaths) {
|
|
185
185
|
plugins.push(new nx_tsconfig_paths_rspack_plugin_1.NxTsconfigPathsRspackPlugin({ ...options, tsConfig }));
|
|
186
186
|
}
|
|
187
|
-
// New TS Solution already has a typecheck target
|
|
188
|
-
if (!options?.skipTypeChecking && !isUsingTsSolution)
|
|
187
|
+
// New TS Solution already has a typecheck target but allow it to run during serve
|
|
188
|
+
if ((!options?.skipTypeChecking && !isUsingTsSolution) ||
|
|
189
|
+
(isUsingTsSolution &&
|
|
190
|
+
options?.skipTypeChecking === false &&
|
|
191
|
+
process.env['WEBPACK_SERVE'])) {
|
|
189
192
|
const { TsCheckerRspackPlugin } = require('ts-checker-rspack-plugin');
|
|
190
193
|
plugins.push(new TsCheckerRspackPlugin({
|
|
191
194
|
typescript: {
|
|
@@ -63,6 +63,7 @@ export interface NxAppRspackPluginOptions {
|
|
|
63
63
|
commonChunk?: boolean;
|
|
64
64
|
/**
|
|
65
65
|
* Delete the output path before building.
|
|
66
|
+
* @deprecated Use the `output.clean` option in Rspack. https://rspack.dev/config/output#outputclean
|
|
66
67
|
*/
|
|
67
68
|
deleteOutputPath?: boolean;
|
|
68
69
|
/**
|