@nx/rspack 20.2.0-beta.3 → 20.2.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
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.2.0-beta.
|
|
4
|
+
"version": "20.2.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.2.0-beta.
|
|
28
|
-
"@nx/devkit": "20.2.0-beta.
|
|
29
|
-
"@nx/web": "20.2.0-beta.
|
|
30
|
-
"@nx/module-federation": "20.2.0-beta.
|
|
27
|
+
"@nx/js": "20.2.0-beta.4",
|
|
28
|
+
"@nx/devkit": "20.2.0-beta.4",
|
|
29
|
+
"@nx/web": "20.2.0-beta.4",
|
|
30
|
+
"@nx/module-federation": "20.2.0-beta.4",
|
|
31
31
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
32
32
|
"@rspack/core": "^1.1.2",
|
|
33
33
|
"@rspack/dev-server": "^1.0.9",
|
|
@@ -3,13 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.default = default_1;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
|
6
|
-
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
|
7
6
|
const package_json_1 = require("nx/package.json");
|
|
8
7
|
const configuration_1 = tslib_1.__importDefault(require("../configuration/configuration"));
|
|
9
8
|
const init_1 = tslib_1.__importDefault(require("../init/init"));
|
|
10
9
|
const normalize_options_1 = require("./lib/normalize-options");
|
|
11
10
|
async function default_1(tree, _options) {
|
|
12
|
-
(0, ts_solution_setup_1.assertNotUsingTsSolutionSetup)(tree, 'rspack', 'application');
|
|
13
11
|
const tasks = [];
|
|
14
12
|
const initTask = await (0, init_1.default)(tree, {
|
|
15
13
|
..._options,
|
|
@@ -3,12 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.configurationGenerator = configurationGenerator;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
|
6
|
-
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
|
7
6
|
const generator_utils_1 = require("../../utils/generator-utils");
|
|
8
7
|
const create_ts_config_1 = require("../application/lib/create-ts-config");
|
|
9
8
|
const init_1 = tslib_1.__importDefault(require("../init/init"));
|
|
10
9
|
async function configurationGenerator(tree, options) {
|
|
11
|
-
(0, ts_solution_setup_1.assertNotUsingTsSolutionSetup)(tree, 'rspack', 'configuration');
|
|
12
10
|
const task = await (0, init_1.default)(tree, {
|
|
13
11
|
...options,
|
|
14
12
|
// TODO: Crystalize the default rspack.config.js file.
|
|
@@ -5,11 +5,9 @@ exports.rspackInitGenerator = rspackInitGenerator;
|
|
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
|
6
6
|
const add_plugin_1 = require("@nx/devkit/src/utils/add-plugin");
|
|
7
7
|
const js_1 = require("@nx/js");
|
|
8
|
-
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
|
9
8
|
const plugin_1 = require("../../../plugin");
|
|
10
9
|
const versions_1 = require("../../utils/versions");
|
|
11
10
|
async function rspackInitGenerator(tree, schema) {
|
|
12
|
-
(0, ts_solution_setup_1.assertNotUsingTsSolutionSetup)(tree, 'rspack', 'init');
|
|
13
11
|
const tasks = [];
|
|
14
12
|
const nxJson = (0, devkit_1.readNxJson)(tree);
|
|
15
13
|
const addPluginDefault = process.env.NX_ADD_PLUGINS !== 'false' &&
|
|
@@ -26,6 +26,7 @@ function applyBaseConfig(options, config = {}, { useNormalizedEntry, } = {}) {
|
|
|
26
26
|
options.memoryLimit ??= 2048;
|
|
27
27
|
options.transformers ??= [];
|
|
28
28
|
options.progress ??= true;
|
|
29
|
+
options.outputHashing ??= 'all';
|
|
29
30
|
applyNxIndependentConfig(options, config);
|
|
30
31
|
// Some of the options only work during actual tasks, not when reading the rspack config during CreateNodes.
|
|
31
32
|
if (global.NX_GRAPH_CREATION)
|
|
@@ -92,6 +93,7 @@ function applyNxIndependentConfig(options, config) {
|
|
|
92
93
|
};
|
|
93
94
|
config.ignoreWarnings = [
|
|
94
95
|
(x) => IGNORED_RSPACK_WARNINGS.some((r) => typeof x === 'string' ? r.test(x) : r.test(x.message)),
|
|
96
|
+
...(config.ignoreWarnings ?? []),
|
|
95
97
|
];
|
|
96
98
|
config.optimization = !isProd
|
|
97
99
|
? undefined
|