@nx/react 18.1.0-beta.6 → 18.1.0-beta.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.1.0-beta.
|
|
3
|
+
"version": "18.1.0-beta.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.1.0-beta.
|
|
40
|
-
"@nx/js": "18.1.0-beta.
|
|
41
|
-
"@nx/eslint": "18.1.0-beta.
|
|
42
|
-
"@nx/web": "18.1.0-beta.
|
|
43
|
-
"@nrwl/react": "18.1.0-beta.
|
|
39
|
+
"@nx/devkit": "18.1.0-beta.8",
|
|
40
|
+
"@nx/js": "18.1.0-beta.8",
|
|
41
|
+
"@nx/eslint": "18.1.0-beta.8",
|
|
42
|
+
"@nx/web": "18.1.0-beta.8",
|
|
43
|
+
"@nrwl/react": "18.1.0-beta.8"
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
|
@@ -143,7 +143,7 @@ async function applicationGeneratorInternal(host, schema) {
|
|
|
143
143
|
tsConfig: (0, devkit_1.joinPathFragments)(options.appProjectRoot, 'tsconfig.app.json'),
|
|
144
144
|
target: 'web',
|
|
145
145
|
newProject: true,
|
|
146
|
-
|
|
146
|
+
framework: 'react',
|
|
147
147
|
});
|
|
148
148
|
tasks.push(rspackTask);
|
|
149
149
|
}
|
|
@@ -201,8 +201,8 @@ async function applicationGeneratorInternal(host, schema) {
|
|
|
201
201
|
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.`);
|
|
202
202
|
tasks.push((0, devkit_1.addDependenciesToPackageJson)(host, {}, { 'babel-loader': versions_1.babelLoaderVersion }));
|
|
203
203
|
host.write((0, devkit_1.joinPathFragments)(options.appProjectRoot, 'rspack.config.js'), (0, devkit_1.stripIndents) `
|
|
204
|
-
const { composePlugins, withNx,
|
|
205
|
-
module.exports = composePlugins(withNx(),
|
|
204
|
+
const { composePlugins, withNx, withReact } = require('@nx/rspack');
|
|
205
|
+
module.exports = composePlugins(withNx(), withReact(), (config) => {
|
|
206
206
|
config.module.rules.push({
|
|
207
207
|
test: /\\.[jt]sx$/i,
|
|
208
208
|
use: [
|