@nx/rspack 20.5.0-beta.3 → 20.5.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/migrations.json
CHANGED
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.5.0-beta.
|
|
4
|
+
"version": "20.5.0-beta.4",
|
|
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.5.0-beta.
|
|
28
|
-
"@nx/devkit": "20.5.0-beta.
|
|
29
|
-
"@nx/web": "20.5.0-beta.
|
|
30
|
-
"@nx/module-federation": "20.5.0-beta.
|
|
27
|
+
"@nx/js": "20.5.0-beta.4",
|
|
28
|
+
"@nx/devkit": "20.5.0-beta.4",
|
|
29
|
+
"@nx/web": "20.5.0-beta.4",
|
|
30
|
+
"@nx/module-federation": "20.5.0-beta.4",
|
|
31
31
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
32
32
|
"@rspack/core": "^1.1.5",
|
|
33
33
|
"@rspack/dev-server": "^1.0.9",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"css-loader": "^6.4.0",
|
|
38
38
|
"enquirer": "~2.3.6",
|
|
39
39
|
"express": "^4.21.2",
|
|
40
|
-
"
|
|
40
|
+
"ts-checker-rspack-plugin": "^1.1.1",
|
|
41
41
|
"http-proxy-middleware": "^3.0.3",
|
|
42
42
|
"less-loader": "11.1.0",
|
|
43
43
|
"license-webpack-plugin": "^4.0.2",
|
package/src/plugins/plugin.js
CHANGED
|
@@ -52,16 +52,15 @@ async function createNodesInternal(configFilePath, options, context, targetsCach
|
|
|
52
52
|
packageJson = (0, devkit_1.readJsonFile)((0, path_1.join)(context.workspaceRoot, projectRoot, 'package.json'));
|
|
53
53
|
}
|
|
54
54
|
const normalizedOptions = normalizeOptions(options);
|
|
55
|
-
|
|
56
|
-
// to prevent vite/vitest files overwriting the target cache created by the other
|
|
55
|
+
const lockFileHash = (0, file_hasher_1.hashFile)((0, path_1.join)(context.workspaceRoot, (0, js_1.getLockFileName)((0, devkit_1.detectPackageManager)(context.workspaceRoot)))) ?? '';
|
|
57
56
|
const nodeHash = (0, file_hasher_1.hashArray)([
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
].map(file_hasher_1.hashFile),
|
|
62
|
-
(0, file_hasher_1.hashObject)(options),
|
|
57
|
+
(0, file_hasher_1.hashFile)((0, path_1.join)(context.workspaceRoot, configFilePath)),
|
|
58
|
+
lockFileHash,
|
|
59
|
+
(0, file_hasher_1.hashObject)({ ...options, isTsSolutionSetup }),
|
|
63
60
|
(0, file_hasher_1.hashObject)(packageJson),
|
|
64
61
|
]);
|
|
62
|
+
// We do not want to alter how the hash is calculated, so appending the config file path to the hash
|
|
63
|
+
// to prevent vite/vitest files overwriting the target cache created by the other
|
|
65
64
|
const hash = `${nodeHash}_${configFilePath}`;
|
|
66
65
|
targetsCache[hash] ??= await createRspackTargets(configFilePath, projectRoot, normalizedOptions, context, isTsSolutionSetup);
|
|
67
66
|
const { targets, metadata } = targetsCache[hash];
|
|
@@ -179,13 +179,13 @@ function applyNxDependentConfig(options, config, { useNormalizedEntry } = {}) {
|
|
|
179
179
|
}
|
|
180
180
|
// New TS Solution already has a typecheck target
|
|
181
181
|
if (!options?.skipTypeChecking && !isUsingTsSolution) {
|
|
182
|
-
const
|
|
183
|
-
plugins.push(new
|
|
182
|
+
const { TsCheckerRspackPlugin } = require('ts-checker-rspack-plugin');
|
|
183
|
+
plugins.push(new TsCheckerRspackPlugin({
|
|
184
184
|
typescript: {
|
|
185
185
|
configFile: path.isAbsolute(tsConfig)
|
|
186
186
|
? tsConfig
|
|
187
187
|
: path.join(options.root, tsConfig),
|
|
188
|
-
memoryLimit: options.memoryLimit ||
|
|
188
|
+
memoryLimit: options.memoryLimit || 8192, // default memory limit is 8192
|
|
189
189
|
},
|
|
190
190
|
}));
|
|
191
191
|
}
|
package/src/utils/versions.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const nxVersion: any;
|
|
2
|
-
export declare const rspackCoreVersion = "
|
|
2
|
+
export declare const rspackCoreVersion = "1.2.2";
|
|
3
3
|
export declare const rspackDevServerVersion = "1.0.9";
|
|
4
4
|
export declare const rspackPluginMinifyVersion = "^0.7.5";
|
|
5
5
|
export declare const rspackPluginReactRefreshVersion = "^1.0.0";
|
package/src/utils/versions.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.eslintPluginReactHooksVersion = exports.eslintPluginReactVersion = exports.eslintPluginJsxA11yVersion = exports.eslintPluginImportVersion = exports.stylusVersion = exports.sassVersion = exports.lessVersion = exports.nestjsMicroservicesVersion = exports.nestjsPlatformExpressVersion = exports.nestjsCoreVersion = exports.nestjsCommonVersion = exports.reactRefreshVersion = exports.lessLoaderVersion = exports.rspackPluginReactRefreshVersion = exports.rspackPluginMinifyVersion = exports.rspackDevServerVersion = exports.rspackCoreVersion = exports.nxVersion = void 0;
|
|
4
4
|
exports.nxVersion = require('../../package.json').version;
|
|
5
|
-
exports.rspackCoreVersion = '
|
|
5
|
+
exports.rspackCoreVersion = '1.2.2';
|
|
6
6
|
exports.rspackDevServerVersion = '1.0.9';
|
|
7
7
|
exports.rspackPluginMinifyVersion = '^0.7.5';
|
|
8
8
|
exports.rspackPluginReactRefreshVersion = '^1.0.0';
|