@nx/rspack 20.0.2 → 20.0.3

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.0.2",
4
+ "version": "20.0.3",
5
5
  "type": "commonjs",
6
6
  "repository": {
7
7
  "type": "git",
@@ -24,9 +24,9 @@
24
24
  "generators": "./generators.json",
25
25
  "executors": "./executors.json",
26
26
  "dependencies": {
27
- "@nx/js": "20.0.2",
28
- "@nx/devkit": "20.0.2",
29
- "@nx/web": "20.0.2",
27
+ "@nx/js": "20.0.3",
28
+ "@nx/devkit": "20.0.3",
29
+ "@nx/web": "20.0.3",
30
30
  "@phenomnomnominal/tsquery": "~5.0.1",
31
31
  "enquirer": "~2.3.6",
32
32
  "express": "^4.19.2",
@@ -131,8 +131,8 @@ async function* moduleFederationDevServer(options, context) {
131
131
  options.staticRemotesPort ??= remotes.staticRemotePort;
132
132
  // Set NX_MF_DEV_REMOTES for the Nx Runtime Library Control Plugin
133
133
  process.env.NX_MF_DEV_REMOTES = JSON.stringify([
134
- ...(remotes.devRemotes.map((r) => typeof r === 'string' ? r : r.remoteName) ?? []),
135
- p.name,
134
+ ...(remotes.devRemotes.map((r) => typeof r === 'string' ? r : r.remoteName) ?? []).map((r) => r.replace(/-/g, '_')),
135
+ p.name.replace(/-/g, '_'),
136
136
  ]);
137
137
  const staticRemotesConfig = (0, parse_static_remotes_config_1.parseStaticRemotesConfig)([...remotes.staticRemotes, ...remotes.dynamicRemotes], context);
138
138
  const mappedLocationsOfStaticRemotes = await (0, build_static_remotes_1.buildStaticRemotes)(staticRemotesConfig, nxBin, context, options);
@@ -168,8 +168,8 @@ async function* moduleFederationSsrDevServer(ssrDevServerOptions, context) {
168
168
  }, pathToManifestFile);
169
169
  options.staticRemotesPort ??= remotes.staticRemotePort;
170
170
  process.env.NX_MF_DEV_REMOTES = JSON.stringify([
171
- ...(remotes.devRemotes.map((r) => typeof r === 'string' ? r : r.remoteName) ?? []),
172
- projectConfig.name,
171
+ ...(remotes.devRemotes.map((r) => typeof r === 'string' ? r : r.remoteName) ?? []).map((r) => r.replace(/-/g, '_')),
172
+ projectConfig.name.replace(/-/g, '_'),
173
173
  ]);
174
174
  const staticRemotesConfig = (0, parse_static_remotes_config_1.parseStaticSsrRemotesConfig)([...remotes.staticRemotes, ...remotes.dynamicRemotes], context);
175
175
  const mappedLocationsOfStaticRemotes = await buildSsrStaticRemotes(staticRemotesConfig, nxBin, context, options);