@nx/rspack 21.2.0 → 21.2.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.2.
|
|
4
|
+
"version": "21.2.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.2.
|
|
28
|
-
"@nx/devkit": "21.2.
|
|
29
|
-
"@nx/web": "21.2.
|
|
30
|
-
"@nx/module-federation": "21.2.
|
|
27
|
+
"@nx/js": "21.2.1",
|
|
28
|
+
"@nx/devkit": "21.2.1",
|
|
29
|
+
"@nx/web": "21.2.1",
|
|
30
|
+
"@nx/module-federation": "21.2.1",
|
|
31
31
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
32
32
|
"@rspack/core": "^1.3.8",
|
|
33
33
|
"@rspack/dev-server": "^1.1.1",
|
package/src/plugins/plugin.js
CHANGED
|
@@ -155,6 +155,11 @@ async function createRspackTargets(configFilePath, projectRoot, options, context
|
|
|
155
155
|
spa: true,
|
|
156
156
|
},
|
|
157
157
|
};
|
|
158
|
+
// for `convert-to-inferred` we need to leave the port undefined or the options will not match
|
|
159
|
+
if (rspackConfig.devServer?.port && rspackConfig.devServer?.port !== 4200) {
|
|
160
|
+
targets[options.serveStaticTargetName].options.port =
|
|
161
|
+
rspackConfig.devServer.port;
|
|
162
|
+
}
|
|
158
163
|
if (isTsSolutionSetup) {
|
|
159
164
|
targets[options.buildTargetName].syncGenerators = [
|
|
160
165
|
'@nx/js:typescript-sync',
|
|
@@ -19,7 +19,7 @@ async function getRspackE2EWebServerInfo(tree, projectName, configFilePath, isPl
|
|
|
19
19
|
defaultServeTargetName: 'serve',
|
|
20
20
|
defaultServeStaticTargetName: 'preview',
|
|
21
21
|
defaultE2EWebServerAddress: `http://localhost:${e2ePort}`,
|
|
22
|
-
defaultE2ECiBaseUrl:
|
|
22
|
+
defaultE2ECiBaseUrl: `http://localhost:${e2ePort}`,
|
|
23
23
|
defaultE2EPort: e2ePort,
|
|
24
24
|
}, isPluginBeingAdded);
|
|
25
25
|
}
|