@nx/react 21.3.0-canary.20250625-fe687a0 → 21.3.0-canary.20250627-07233f0
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/mf/dynamic-federation.js +2 -10
- package/package.json +6 -6
- package/src/generators/host/files/rspack-module-federation-ssr-ts/rspack.config.ts__tmpl__ +3 -3
- package/src/generators/host/files/rspack-module-federation-ts/rspack.config.prod.ts__tmpl__ +3 -3
- package/src/generators/host/files/rspack-module-federation-ts/rspack.config.ts__tmpl__ +3 -3
- package/src/generators/host/files/webpack-module-federation-ssr-ts/webpack.server.config.ts__tmpl__ +1 -1
- package/src/generators/host/files/webpack-module-federation-ts/webpack.config.prod.ts__tmpl__ +1 -1
- package/src/generators/host/files/webpack-module-federation-ts/webpack.config.ts__tmpl__ +1 -1
- package/src/generators/remote/files/rspack-module-federation-ssr-ts/rspack.config.ts__tmpl__ +3 -3
- package/src/generators/remote/files/rspack-module-federation-ts/rspack.config.ts__tmpl__ +3 -3
- package/src/generators/remote/files/webpack-module-federation-ssr-ts/webpack.server.config.ts__tmpl__ +1 -1
- package/src/generators/remote/files/webpack-module-federation-ts/webpack.config.ts__tmpl__ +1 -1
package/mf/dynamic-federation.js
CHANGED
@@ -4,7 +4,7 @@ exports.setRemoteUrlResolver = setRemoteUrlResolver;
|
|
4
4
|
exports.setRemoteDefinitions = setRemoteDefinitions;
|
5
5
|
exports.setRemoteDefinition = setRemoteDefinition;
|
6
6
|
exports.loadRemoteModule = loadRemoteModule;
|
7
|
-
const
|
7
|
+
const url_helpers_1 = require("@nx/module-federation/url-helpers");
|
8
8
|
let remoteUrlDefinitions = {};
|
9
9
|
let resolveRemoteUrl;
|
10
10
|
const remoteModuleMap = new Map();
|
@@ -132,15 +132,7 @@ async function loadRemoteContainer(remoteName) {
|
|
132
132
|
const remoteUrl = remoteUrlDefinitions
|
133
133
|
? remoteUrlDefinitions[remoteName]
|
134
134
|
: await resolveRemoteUrl(remoteName);
|
135
|
-
const
|
136
|
-
const ext = (0, node_path_1.extname)(url.pathname);
|
137
|
-
const needsRemoteEntry = !['.js', '.mjs', '.json'].includes(ext);
|
138
|
-
if (needsRemoteEntry) {
|
139
|
-
url.pathname = url.pathname.endsWith('/')
|
140
|
-
? `${url.pathname}remoteEntry.mjs`
|
141
|
-
: `${url.pathname}/remoteEntry.mjs`;
|
142
|
-
}
|
143
|
-
const containerUrl = url.href;
|
135
|
+
const containerUrl = (0, url_helpers_1.processRuntimeRemoteUrl)(remoteUrl, 'mjs');
|
144
136
|
const container = await fetchRemoteModule(containerUrl, remoteName);
|
145
137
|
await container.init(__webpack_share_scopes__.default);
|
146
138
|
remoteContainerMap.set(remoteName, container);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/react",
|
3
|
-
"version": "21.3.0-canary.
|
3
|
+
"version": "21.3.0-canary.20250627-07233f0",
|
4
4
|
"private": false,
|
5
5
|
"description": "The React plugin for Nx contains executors and generators for managing React applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Jest, Vitest, Playwright, Cypress, and Storybook.\n\n- Generators for applications, libraries, components, hooks, and more.\n\n- Library build support for publishing packages to npm or other registries.\n\n- Utilities for automatic workspace refactoring.",
|
6
6
|
"repository": {
|
@@ -38,11 +38,11 @@
|
|
38
38
|
"minimatch": "9.0.3",
|
39
39
|
"picocolors": "^1.1.0",
|
40
40
|
"tslib": "^2.3.0",
|
41
|
-
"@nx/devkit": "21.3.0-canary.
|
42
|
-
"@nx/js": "21.3.0-canary.
|
43
|
-
"@nx/eslint": "21.3.0-canary.
|
44
|
-
"@nx/web": "21.3.0-canary.
|
45
|
-
"@nx/module-federation": "21.3.0-canary.
|
41
|
+
"@nx/devkit": "21.3.0-canary.20250627-07233f0",
|
42
|
+
"@nx/js": "21.3.0-canary.20250627-07233f0",
|
43
|
+
"@nx/eslint": "21.3.0-canary.20250627-07233f0",
|
44
|
+
"@nx/web": "21.3.0-canary.20250627-07233f0",
|
45
|
+
"@nx/module-federation": "21.3.0-canary.20250627-07233f0",
|
46
46
|
"express": "^4.21.2",
|
47
47
|
"http-proxy-middleware": "^3.0.3",
|
48
48
|
"semver": "^7.6.3"
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { NxAppRspackPlugin } from '@nx/rspack/app-plugin';
|
2
|
-
import { NxReactRspackPlugin } from '@nx/rspack/react-plugin';
|
3
|
-
import { NxModuleFederationPlugin, NxModuleFederationSSRDevServerPlugin } from '@nx/module-federation/rspack';
|
1
|
+
import { NxAppRspackPlugin } from '@nx/rspack/app-plugin.js';
|
2
|
+
import { NxReactRspackPlugin } from '@nx/rspack/react-plugin.js';
|
3
|
+
import { NxModuleFederationPlugin, NxModuleFederationSSRDevServerPlugin } from '@nx/module-federation/rspack.js';
|
4
4
|
import { join } from 'path';
|
5
5
|
|
6
6
|
import browserMfConfig from './module-federation.config';
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { NxAppRspackPlugin } from '@nx/rspack/app-plugin';
|
2
|
-
import { NxReactRspackPlugin } from '@nx/rspack/react-plugin';
|
3
|
-
import { NxModuleFederationPlugin, NxModuleFederationDevServerPlugin } from '@nx/module-federation/rspack';
|
1
|
+
import { NxAppRspackPlugin } from '@nx/rspack/app-plugin.js';
|
2
|
+
import { NxReactRspackPlugin } from '@nx/rspack/react-plugin.js';
|
3
|
+
import { NxModuleFederationPlugin, NxModuleFederationDevServerPlugin } from '@nx/module-federation/rspack.js';
|
4
4
|
import { ModuleFederationConfig } from '@nx/module-federation';
|
5
5
|
import { join } from 'path';
|
6
6
|
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { NxAppRspackPlugin } from '@nx/rspack/app-plugin';
|
2
|
-
import { NxReactRspackPlugin } from '@nx/rspack/react-plugin';
|
3
|
-
import { NxModuleFederationPlugin, NxModuleFederationDevServerPlugin } from '@nx/module-federation/rspack';
|
1
|
+
import { NxAppRspackPlugin } from '@nx/rspack/app-plugin.js';
|
2
|
+
import { NxReactRspackPlugin } from '@nx/rspack/react-plugin.js';
|
3
|
+
import { NxModuleFederationPlugin, NxModuleFederationDevServerPlugin } from '@nx/module-federation/rspack.js';
|
4
4
|
import { join } from 'path';
|
5
5
|
|
6
6
|
import config from './module-federation.config';
|
package/src/generators/host/files/webpack-module-federation-ssr-ts/webpack.server.config.ts__tmpl__
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import {composePlugins, withNx} from '@nx/webpack';
|
2
2
|
import {withReact} from '@nx/react';
|
3
|
-
import {withModuleFederationForSSR} from '@nx/module-federation/webpack';
|
3
|
+
import {withModuleFederationForSSR} from '@nx/module-federation/webpack.js';
|
4
4
|
|
5
5
|
import baseConfig from './module-federation.config';
|
6
6
|
|
package/src/generators/host/files/webpack-module-federation-ts/webpack.config.prod.ts__tmpl__
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { composePlugins, withNx } from '@nx/webpack';
|
2
2
|
import { withReact } from '@nx/react';
|
3
|
-
import { withModuleFederation } from '@nx/module-federation/webpack';
|
3
|
+
import { withModuleFederation } from '@nx/module-federation/webpack.js';
|
4
4
|
import { ModuleFederationConfig } from '@nx/module-federation';
|
5
5
|
|
6
6
|
import baseConfig from './module-federation.config';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import {composePlugins, withNx} from '@nx/webpack';
|
2
2
|
import {withReact} from '@nx/react';
|
3
|
-
import {withModuleFederation} from '@nx/module-federation/webpack';
|
3
|
+
import {withModuleFederation} from '@nx/module-federation/webpack.js';
|
4
4
|
import { ModuleFederationConfig } from '@nx/module-federation';
|
5
5
|
|
6
6
|
import baseConfig from './module-federation.config';
|
package/src/generators/remote/files/rspack-module-federation-ssr-ts/rspack.config.ts__tmpl__
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { NxAppRspackPlugin } from '@nx/rspack/app-plugin';
|
2
|
-
import { NxReactRspackPlugin } from '@nx/rspack/react-plugin';
|
3
|
-
import { NxModuleFederationPlugin, NxModuleFederationSSRDevServerPlugin } from '@nx/module-federation/rspack';
|
1
|
+
import { NxAppRspackPlugin } from '@nx/rspack/app-plugin.js';
|
2
|
+
import { NxReactRspackPlugin } from '@nx/rspack/react-plugin.js';
|
3
|
+
import { NxModuleFederationPlugin, NxModuleFederationSSRDevServerPlugin } from '@nx/module-federation/rspack.js';
|
4
4
|
import { join } from 'path';
|
5
5
|
|
6
6
|
import browserMfConfig from './module-federation.config';
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { NxAppRspackPlugin } from '@nx/rspack/app-plugin';
|
2
|
-
import { NxReactRspackPlugin } from '@nx/rspack/react-plugin';
|
3
|
-
import { NxModuleFederationPlugin, NxModuleFederationDevServerPlugin } from '@nx/module-federation/rspack';
|
1
|
+
import { NxAppRspackPlugin } from '@nx/rspack/app-plugin.js';
|
2
|
+
import { NxReactRspackPlugin } from '@nx/rspack/react-plugin.js';
|
3
|
+
import { NxModuleFederationPlugin, NxModuleFederationDevServerPlugin } from '@nx/module-federation/rspack.js';
|
4
4
|
import { join } from 'path';
|
5
5
|
|
6
6
|
import config from './module-federation.config';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import {composePlugins, withNx} from '@nx/webpack';
|
2
2
|
import {withReact} from '@nx/react';
|
3
|
-
import {withModuleFederationForSSR} from '@nx/module-federation/webpack';
|
3
|
+
import {withModuleFederationForSSR} from '@nx/module-federation/webpack.js';
|
4
4
|
|
5
5
|
import baseConfig from "./module-federation.server.config";
|
6
6
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import {composePlugins, withNx} from '@nx/webpack';
|
2
2
|
import {withReact} from '@nx/react';
|
3
|
-
import {withModuleFederation} from '@nx/module-federation/webpack';
|
3
|
+
import {withModuleFederation} from '@nx/module-federation/webpack.js';
|
4
4
|
|
5
5
|
import baseConfig from './module-federation.config';
|
6
6
|
|