@nx/react 21.4.0-canary.20250813-811d184 → 21.4.0
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 +9 -9
- package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.d.ts.map +1 -1
- package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.js +1 -1
- package/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.d.ts.map +1 -1
- package/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.js +1 -1
- package/src/executors/module-federation-static-server/module-federation-static-server.impl.d.ts.map +1 -1
- package/src/executors/module-federation-static-server/module-federation-static-server.impl.js +1 -1
- package/src/generators/host/files/common/src/app/__fileName__.js__tmpl__ +1 -1
- package/src/generators/host/files/common-ts/src/app/__fileName__.tsx__tmpl__ +1 -1
- package/src/generators/host/files/rspack-common/src/app/__fileName__.jsx__tmpl__ +1 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/react",
|
3
|
-
"version": "21.4.0
|
3
|
+
"version": "21.4.0",
|
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,19 +38,19 @@
|
|
38
38
|
"minimatch": "9.0.3",
|
39
39
|
"picocolors": "^1.1.0",
|
40
40
|
"tslib": "^2.3.0",
|
41
|
-
"@nx/devkit": "21.4.0
|
42
|
-
"@nx/js": "21.4.0
|
43
|
-
"@nx/eslint": "21.4.0
|
44
|
-
"@nx/web": "21.4.0
|
45
|
-
"@nx/vite": "21.4.0
|
46
|
-
"@nx/module-federation": "21.4.0
|
47
|
-
"@nx/rollup": "21.4.0
|
41
|
+
"@nx/devkit": "21.4.0",
|
42
|
+
"@nx/js": "21.4.0",
|
43
|
+
"@nx/eslint": "21.4.0",
|
44
|
+
"@nx/web": "21.4.0",
|
45
|
+
"@nx/vite": "21.4.0",
|
46
|
+
"@nx/module-federation": "21.4.0",
|
47
|
+
"@nx/rollup": "21.4.0",
|
48
48
|
"express": "^4.21.2",
|
49
49
|
"http-proxy-middleware": "^3.0.5",
|
50
50
|
"semver": "^7.6.3"
|
51
51
|
},
|
52
52
|
"devDependencies": {
|
53
|
-
"nx": "21.4.0
|
53
|
+
"nx": "21.4.0"
|
54
54
|
},
|
55
55
|
"publishConfig": {
|
56
56
|
"access": "public"
|
package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"module-federation-dev-server.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/executors/module-federation-dev-server/module-federation-dev-server.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAU,MAAM,YAAY,CAAC;AAarD,OAAO,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AAE5D,wBAA+B,yBAAyB,CACtD,MAAM,EAAE,gCAAgC,EACxC,OAAO,EAAE,eAAe,GACvB,qBAAqB,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,
|
1
|
+
{"version":3,"file":"module-federation-dev-server.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/executors/module-federation-dev-server/module-federation-dev-server.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAU,MAAM,YAAY,CAAC;AAarD,OAAO,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AAE5D,wBAA+B,yBAAyB,CACtD,MAAM,EAAE,gCAAgC,EACxC,OAAO,EAAE,eAAe,GACvB,qBAAqB,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAsG/D"}
|
@@ -51,7 +51,7 @@ async function* moduleFederationDevServer(schema, context) {
|
|
51
51
|
try {
|
52
52
|
const host = options.host ?? 'localhost';
|
53
53
|
const baseUrl = `http${options.ssl ? 's' : ''}://${host}:${options.port}`;
|
54
|
-
const portsToWaitFor = staticRemotesIter
|
54
|
+
const portsToWaitFor = staticRemotesIter && options.staticRemotesPort
|
55
55
|
? [options.staticRemotesPort, ...remotes.remotePorts]
|
56
56
|
: [...remotes.remotePorts];
|
57
57
|
await Promise.all(portsToWaitFor.map((port) => (0, wait_for_port_open_1.waitForPortOpen)(port, {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"module-federation-ssr-dev-server.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAU,MAAM,YAAY,CAAC;AAYrD,OAAO,EAAE,mCAAmC,EAAE,MAAM,UAAU,CAAC;AAE/D,wBAA+B,4BAA4B,CACzD,mBAAmB,EAAE,mCAAmC,EACxD,OAAO,EAAE,eAAe,
|
1
|
+
{"version":3,"file":"module-federation-ssr-dev-server.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAU,MAAM,YAAY,CAAC;AAYrD,OAAO,EAAE,mCAAmC,EAAE,MAAM,UAAU,CAAC;AAE/D,wBAA+B,4BAA4B,CACzD,mBAAmB,EAAE,mCAAmC,EACxD,OAAO,EAAE,eAAe,iCA2GzB"}
|
package/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.js
CHANGED
@@ -53,7 +53,7 @@ async function* moduleFederationSsrDevServer(ssrDevServerOptions, context) {
|
|
53
53
|
return;
|
54
54
|
}
|
55
55
|
try {
|
56
|
-
const portsToWaitFor = staticRemotesIter
|
56
|
+
const portsToWaitFor = staticRemotesIter && options.staticRemotesPort
|
57
57
|
? [options.staticRemotesPort, ...remotes.remotePorts]
|
58
58
|
: [...remotes.remotePorts];
|
59
59
|
await Promise.all(portsToWaitFor.map((port) => (0, wait_for_port_open_1.waitForPortOpen)(port, {
|
package/src/executors/module-federation-static-server/module-federation-static-server.impl.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"module-federation-static-server.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/executors/module-federation-static-server/module-federation-static-server.impl.ts"],"names":[],"mappings":"AAaA,OAAO,EAIL,mBAAmB,EACpB,MAAM,iCAAiC,CAAC;AAQzC,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,OAAO,EAAE,gCAAgC,EAAE,MAAM,wCAAwC,CAAC;AAC1F,OAAO,EAAE,kCAAkC,EAAE,MAAM,UAAU,CAAC;AAgJ9D,wBAAgB,YAAY,CAC1B,mBAAmB,EAAE,mBAAmB,EACxC,gBAAgB,EAAE,gCAAgC,EAClD,oBAAoB,EAAE,MAAM,EAC5B,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAChD,UAAU,CAAC,EAAE;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,QAgEvD;AAED,wBAA+B,4BAA4B,CACzD,MAAM,EAAE,kCAAkC,EAC1C,OAAO,EAAE,eAAe;;;
|
1
|
+
{"version":3,"file":"module-federation-static-server.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/executors/module-federation-static-server/module-federation-static-server.impl.ts"],"names":[],"mappings":"AAaA,OAAO,EAIL,mBAAmB,EACpB,MAAM,iCAAiC,CAAC;AAQzC,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,OAAO,EAAE,gCAAgC,EAAE,MAAM,wCAAwC,CAAC;AAC1F,OAAO,EAAE,kCAAkC,EAAE,MAAM,UAAU,CAAC;AAgJ9D,wBAAgB,YAAY,CAC1B,mBAAmB,EAAE,mBAAmB,EACxC,gBAAgB,EAAE,gCAAgC,EAClD,oBAAoB,EAAE,MAAM,EAC5B,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAChD,UAAU,CAAC,EAAE;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,QAgEvD;AAED,wBAA+B,4BAA4B,CACzD,MAAM,EAAE,kCAAkC,EAC1C,OAAO,EAAE,eAAe;;;aAiJzB"}
|
package/src/executors/module-federation-static-server/module-federation-static-server.impl.js
CHANGED
@@ -217,7 +217,7 @@ async function* moduleFederationStaticServer(schema, context) {
|
|
217
217
|
return;
|
218
218
|
}
|
219
219
|
try {
|
220
|
-
const portsToWaitFor = staticFileServerIter
|
220
|
+
const portsToWaitFor = staticFileServerIter && options.serveOptions.staticRemotesPort
|
221
221
|
? [options.serveOptions.staticRemotesPort, ...remotes.remotePorts]
|
222
222
|
: [...remotes.remotePorts];
|
223
223
|
await Promise.all(portsToWaitFor.map((port) => (0, wait_for_port_open_1.waitForPortOpen)(port, {
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
3
3
|
import NxWelcome from "./nx-welcome";
|
4
4
|
<%_ } _%>
|
5
5
|
import { Link, Route, Routes } from 'react-router-dom';
|
6
|
-
<%_ if (dynamic) { _%>
|
6
|
+
<%_ if (dynamic && remotes.length > 0) { _%>
|
7
7
|
import { loadRemote } from '@module-federation/enhanced/runtime';
|
8
8
|
<%_ } _%>
|
9
9
|
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
3
3
|
import NxWelcome from "./nx-welcome";
|
4
4
|
<%_ } _%>
|
5
5
|
import { Link, Route, Routes } from 'react-router-dom';
|
6
|
-
<%_ if (dynamic) { _%>
|
6
|
+
<%_ if (dynamic && remotes.length > 0) { _%>
|
7
7
|
import { loadRemote } from '@module-federation/enhanced/runtime';
|
8
8
|
<%_ } _%>
|
9
9
|
|