@nx/react 0.0.0-pr-33611-04bb0f0 → 0.0.0-pr-33228-f4ef600

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": "0.0.0-pr-33611-04bb0f0",
3
+ "version": "0.0.0-pr-33228-f4ef600",
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,27 +38,27 @@
38
38
  "minimatch": "9.0.3",
39
39
  "picocolors": "^1.1.0",
40
40
  "tslib": "^2.3.0",
41
- "@nx/devkit": "0.0.0-pr-33611-04bb0f0",
42
- "@nx/js": "0.0.0-pr-33611-04bb0f0",
43
- "@nx/eslint": "0.0.0-pr-33611-04bb0f0",
44
- "@nx/web": "0.0.0-pr-33611-04bb0f0",
45
- "@nx/module-federation": "0.0.0-pr-33611-04bb0f0",
46
- "@nx/rollup": "0.0.0-pr-33611-04bb0f0",
41
+ "@nx/devkit": "0.0.0-pr-33228-f4ef600",
42
+ "@nx/js": "0.0.0-pr-33228-f4ef600",
43
+ "@nx/eslint": "0.0.0-pr-33228-f4ef600",
44
+ "@nx/web": "0.0.0-pr-33228-f4ef600",
45
+ "@nx/module-federation": "0.0.0-pr-33228-f4ef600",
46
+ "@nx/rollup": "0.0.0-pr-33228-f4ef600",
47
47
  "express": "^4.21.2",
48
48
  "http-proxy-middleware": "^3.0.5",
49
49
  "semver": "^7.6.3"
50
50
  },
51
51
  "devDependencies": {
52
- "@nx/cypress": "0.0.0-pr-33611-04bb0f0",
53
- "@nx/playwright": "0.0.0-pr-33611-04bb0f0",
54
- "@nx/rsbuild": "0.0.0-pr-33611-04bb0f0",
55
- "@nx/vite": "0.0.0-pr-33611-04bb0f0",
56
- "@nx/vitest": "0.0.0-pr-33611-04bb0f0",
57
- "@nx/webpack": "0.0.0-pr-33611-04bb0f0",
58
- "nx": "0.0.0-pr-33611-04bb0f0"
52
+ "@nx/cypress": "0.0.0-pr-33228-f4ef600",
53
+ "@nx/playwright": "0.0.0-pr-33228-f4ef600",
54
+ "@nx/rsbuild": "0.0.0-pr-33228-f4ef600",
55
+ "@nx/vite": "0.0.0-pr-33228-f4ef600",
56
+ "@nx/vitest": "0.0.0-pr-33228-f4ef600",
57
+ "@nx/webpack": "0.0.0-pr-33228-f4ef600",
58
+ "nx": "0.0.0-pr-33228-f4ef600"
59
59
  },
60
60
  "optionalDependencies": {
61
- "@nx/vite": "0.0.0-pr-33611-04bb0f0"
61
+ "@nx/vite": "0.0.0-pr-33228-f4ef600"
62
62
  },
63
63
  "publishConfig": {
64
64
  "access": "public"
@@ -1 +1 @@
1
- {"version":3,"file":"add-vite.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/react/src/generators/application/lib/bundlers/add-vite.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAoC,MAAM,YAAY,CAAC;AAEzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAExD,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,CAAC,MAAM,CAAC,EACjC,KAAK,EAAE,GAAG,EAAE,iBAyDb;AAED,wBAAsB,wBAAwB,CAC5C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,CAAC,MAAM,CAAC,EACjC,KAAK,EAAE,GAAG,EAAE,iBA0Cb"}
1
+ {"version":3,"file":"add-vite.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/react/src/generators/application/lib/bundlers/add-vite.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAoC,MAAM,YAAY,CAAC;AAEzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAExD,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,CAAC,MAAM,CAAC,EACjC,KAAK,EAAE,GAAG,EAAE,iBAwDb;AAED,wBAAsB,wBAAwB,CAC5C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,CAAC,MAAM,CAAC,EACjC,KAAK,EAAE,GAAG,EAAE,iBAyCb"}
@@ -44,7 +44,6 @@ async function setupViteConfiguration(tree, options, tasks) {
44
44
  rollupOptionsExternal: ["'react'", "'react-dom'", "'react/jsx-runtime'"],
45
45
  port: options.port,
46
46
  previewPort: options.port,
47
- useEsmExtension: true,
48
47
  ...(options.useReactRouter
49
48
  ? reactRouterFrameworkConfig
50
49
  : baseReactConfig),
@@ -75,9 +74,8 @@ async function setupVitestConfiguration(tree, options, tasks) {
75
74
  : `import react from '@vitejs/plugin-react'`,
76
75
  ],
77
76
  plugins: ['react()'],
78
- useEsmExtension: true,
79
77
  }, true);
80
78
  if (options.bundler === 'rsbuild') {
81
- tree.rename((0, devkit_1.joinPathFragments)(options.appProjectRoot, 'vite.config.mts'), (0, devkit_1.joinPathFragments)(options.appProjectRoot, 'vitest.config.mts'));
79
+ tree.rename((0, devkit_1.joinPathFragments)(options.appProjectRoot, 'vite.config.ts'), (0, devkit_1.joinPathFragments)(options.appProjectRoot, 'vitest.config.ts'));
82
80
  }
83
81
  }
@@ -13,7 +13,7 @@ import { Route, Link } from 'react-router-dom';
13
13
  import styled from '<%= styledModule %>';
14
14
  <%_ } else {
15
15
  var wrapper = 'div';
16
- var extras = globalCss || styledModule === 'styled-jsx' || styledModule === 'tailwind' ? '' : " className={styles['container']}";
16
+ var extras = globalCss || styledModule === 'styled-jsx' ? '' : " className={styles['container']}";
17
17
  _%>
18
18
  <%- style !== 'styled-jsx' && style!== 'tailwind' ? globalCss ? `import './${fileName}.${style}';` : `import styles from './${fileName}.module.${style}';`: '' %>
19
19
  <%_ }
@@ -1 +1 @@
1
- {"version":3,"file":"library.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/generators/library/library.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,iBAAiB,EAOjB,IAAI,EAGL,MAAM,YAAY,CAAC;AAgCpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAMhE;AAED,wBAAsB,wBAAwB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BA0RxE;AAED,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"library.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/generators/library/library.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,iBAAiB,EAOjB,IAAI,EAGL,MAAM,YAAY,CAAC;AAgCpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAMhE;AAED,wBAAsB,wBAAwB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAwRxE;AAED,eAAe,gBAAgB,CAAC"}
@@ -120,7 +120,6 @@ async function libraryGeneratorInternal(host, schema) {
120
120
  : `import react from '@vitejs/plugin-react'`,
121
121
  ],
122
122
  plugins: ['react()'],
123
- useEsmExtension: true,
124
123
  }, false);
125
124
  }
126
125
  else if (options.buildable && options.bundler === 'rollup') {
@@ -179,7 +178,6 @@ async function libraryGeneratorInternal(host, schema) {
179
178
  : `import react from '@vitejs/plugin-react'`,
180
179
  ],
181
180
  plugins: ['react()'],
182
- useEsmExtension: true,
183
181
  }, true);
184
182
  }
185
183
  if (options.component) {