@nx/react 24.0.6 → 24.1.0-beta.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.
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.withModuleFederation = withModuleFederation;
|
|
4
4
|
exports.withModuleFederationForSSR = withModuleFederationForSSR;
|
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
|
6
|
-
// TODO(v25): Delete this subpath. It keeps 23.x configs loading during graph creation so `nx migrate` can run.
|
|
6
|
+
// TODO(v25): Delete this subpath (NXC-5165). It keeps 23.x configs loading during graph creation so `nx migrate` can run.
|
|
7
7
|
const REMOVED_MESSAGE = 'Nx Module Federation was removed in Nx v24. `@nx/react/module-federation` is a stub that keeps old configs loadable during project graph creation; it does not configure Module Federation. Follow https://nx.dev/docs/kb/migrate-from-nx-module-federation to move to the official Module Federation plugin.';
|
|
8
8
|
let warned = false;
|
|
9
9
|
// Graph creation only reads the config, so it keeps working; a build would silently drop federation.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.withReact = withReact;
|
|
4
4
|
const deprecation_1 = require("../src/utils/deprecation");
|
|
5
|
-
// TODO(v25): remove the inert config-helper stubs in this file.
|
|
5
|
+
// TODO(v25): remove the inert config-helper stubs in this file (NXC-5164).
|
|
6
6
|
/**
|
|
7
7
|
* @deprecated Use `NxReactWebpackPlugin` from `@nx/react/webpack-plugin`.
|
|
8
8
|
* This inert stub will be removed in Nx v25.
|
|
@@ -19,11 +19,6 @@ function addProject(host, options) {
|
|
|
19
19
|
if (options.projectName !== options.importPath) {
|
|
20
20
|
packageJson.nx = { name: options.projectName };
|
|
21
21
|
}
|
|
22
|
-
if (Object.keys(project.targets).length) {
|
|
23
|
-
packageJson.nx ??= {};
|
|
24
|
-
packageJson.nx.sourceRoot = (0, devkit_1.joinPathFragments)(options.appProjectRoot, 'src');
|
|
25
|
-
packageJson.nx.targets = project.targets;
|
|
26
|
-
}
|
|
27
22
|
if (options.parsedTags?.length) {
|
|
28
23
|
packageJson.nx ??= {};
|
|
29
24
|
packageJson.nx.tags = options.parsedTags;
|
|
@@ -202,7 +202,6 @@ async function libraryGeneratorInternal(host, schema) {
|
|
|
202
202
|
await (0, internal_2.addReleaseConfigForTsSolution)(host, options.name, projectConfiguration);
|
|
203
203
|
}
|
|
204
204
|
else {
|
|
205
|
-
const nxJson = (0, devkit_1.readNxJson)(host);
|
|
206
205
|
await (0, internal_2.addReleaseConfigForNonTsSolution)(host, options.name, projectConfiguration);
|
|
207
206
|
}
|
|
208
207
|
(0, devkit_1.updateProjectConfiguration)(host, options.name, projectConfiguration);
|
|
@@ -8,6 +8,12 @@ const fs_1 = require("fs");
|
|
|
8
8
|
const js_1 = require("@nx/js");
|
|
9
9
|
const internal_2 = require("@nx/js/internal");
|
|
10
10
|
const router_plugin_utils_1 = require("./router-plugin-utils");
|
|
11
|
+
const node_module_1 = require("node:module");
|
|
12
|
+
// Node passes a stand-in require, without a cache, require.extensions or
|
|
13
|
+
// Module._load, when an ESM loader hook supplies this module's source, as
|
|
14
|
+
// Yarn PnP does.
|
|
15
|
+
if (!require.cache)
|
|
16
|
+
require = (0, node_module_1.createRequire)(__filename);
|
|
11
17
|
const reactRouterConfigBlob = '**/react-router.config.{ts,js,cjs,cts,mjs,mts}';
|
|
12
18
|
exports.createNodes = [
|
|
13
19
|
reactRouterConfigBlob,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/react",
|
|
3
|
-
"version": "24.0.
|
|
3
|
+
"version": "24.1.0-beta.1",
|
|
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": {
|
|
@@ -105,26 +105,26 @@
|
|
|
105
105
|
"@phenomnomnominal/tsquery": "~6.2.0",
|
|
106
106
|
"minimatch": "10.2.5",
|
|
107
107
|
"tslib": "^2.3.0",
|
|
108
|
-
"@nx/devkit": "24.0.
|
|
109
|
-
"@nx/js": "24.0.
|
|
110
|
-
"@nx/eslint": "24.0.
|
|
111
|
-
"@nx/web": "24.0.
|
|
108
|
+
"@nx/devkit": "24.1.0-beta.1",
|
|
109
|
+
"@nx/js": "24.1.0-beta.1",
|
|
110
|
+
"@nx/eslint": "24.1.0-beta.1",
|
|
111
|
+
"@nx/web": "24.1.0-beta.1",
|
|
112
112
|
"semver": "^7.6.3"
|
|
113
113
|
},
|
|
114
114
|
"devDependencies": {
|
|
115
|
-
"@nx/cypress": "24.0.
|
|
116
|
-
"@nx/playwright": "24.0.
|
|
117
|
-
"@nx/rollup": "24.0.
|
|
118
|
-
"@nx/rsbuild": "24.0.
|
|
119
|
-
"@nx/rspack": "24.0.
|
|
120
|
-
"@nx/vite": "24.0.
|
|
121
|
-
"@nx/vitest": "24.0.
|
|
122
|
-
"@nx/webpack": "24.0.
|
|
123
|
-
"@nx/storybook": "24.0.
|
|
124
|
-
"nx": "24.0.
|
|
115
|
+
"@nx/cypress": "24.1.0-beta.1",
|
|
116
|
+
"@nx/playwright": "24.1.0-beta.1",
|
|
117
|
+
"@nx/rollup": "24.1.0-beta.1",
|
|
118
|
+
"@nx/rsbuild": "24.1.0-beta.1",
|
|
119
|
+
"@nx/rspack": "24.1.0-beta.1",
|
|
120
|
+
"@nx/vite": "24.1.0-beta.1",
|
|
121
|
+
"@nx/vitest": "24.1.0-beta.1",
|
|
122
|
+
"@nx/webpack": "24.1.0-beta.1",
|
|
123
|
+
"@nx/storybook": "24.1.0-beta.1",
|
|
124
|
+
"nx": "24.1.0-beta.1"
|
|
125
125
|
},
|
|
126
126
|
"optionalDependencies": {
|
|
127
|
-
"@nx/vite": "24.0.
|
|
127
|
+
"@nx/vite": "24.1.0-beta.1"
|
|
128
128
|
},
|
|
129
129
|
"publishConfig": {
|
|
130
130
|
"access": "public"
|