@nx/react 18.0.6 → 18.0.8
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/react",
|
|
3
|
-
"version": "18.0.
|
|
3
|
+
"version": "18.0.8",
|
|
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, 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": {
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"chalk": "^4.1.0",
|
|
37
37
|
"minimatch": "9.0.3",
|
|
38
38
|
"tslib": "^2.3.0",
|
|
39
|
-
"@nx/devkit": "18.0.
|
|
40
|
-
"@nx/js": "18.0.
|
|
41
|
-
"@nx/eslint": "18.0.
|
|
42
|
-
"@nx/web": "18.0.
|
|
43
|
-
"@nrwl/react": "18.0.
|
|
39
|
+
"@nx/devkit": "18.0.8",
|
|
40
|
+
"@nx/js": "18.0.8",
|
|
41
|
+
"@nx/eslint": "18.0.8",
|
|
42
|
+
"@nx/web": "18.0.8",
|
|
43
|
+
"@nrwl/react": "18.0.8"
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
|
@@ -136,7 +136,7 @@ async function applicationGeneratorInternal(host, schema) {
|
|
|
136
136
|
tsConfig: (0, devkit_1.joinPathFragments)(options.appProjectRoot, 'tsconfig.app.json'),
|
|
137
137
|
target: 'web',
|
|
138
138
|
newProject: true,
|
|
139
|
-
|
|
139
|
+
framework: 'react',
|
|
140
140
|
});
|
|
141
141
|
tasks.push(rspackTask);
|
|
142
142
|
}
|
|
@@ -194,8 +194,8 @@ async function applicationGeneratorInternal(host, schema) {
|
|
|
194
194
|
devkit_1.logger.warn(`${chalk.bold('styled-jsx')} is not supported by ${chalk.bold('Rspack')}. We've added ${chalk.bold('babel-loader')} to your project, but using babel will slow down your build.`);
|
|
195
195
|
tasks.push((0, devkit_1.addDependenciesToPackageJson)(host, {}, { 'babel-loader': versions_1.babelLoaderVersion }));
|
|
196
196
|
host.write((0, devkit_1.joinPathFragments)(options.appProjectRoot, 'rspack.config.js'), (0, devkit_1.stripIndents) `
|
|
197
|
-
const { composePlugins, withNx,
|
|
198
|
-
module.exports = composePlugins(withNx(),
|
|
197
|
+
const { composePlugins, withNx, withReact } = require('@nx/rspack');
|
|
198
|
+
module.exports = composePlugins(withNx(), withReact(), (config) => {
|
|
199
199
|
config.module.rules.push({
|
|
200
200
|
test: /\\.[jt]sx$/i,
|
|
201
201
|
use: [
|