@nx/react 22.1.0 → 22.2.0-canary.20251120-aa38b25

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": "22.1.0",
3
+ "version": "22.2.0-canary.20251120-aa38b25",
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": "22.1.0",
42
- "@nx/js": "22.1.0",
43
- "@nx/eslint": "22.1.0",
44
- "@nx/web": "22.1.0",
45
- "@nx/module-federation": "22.1.0",
46
- "@nx/rollup": "22.1.0",
41
+ "@nx/devkit": "22.2.0-canary.20251120-aa38b25",
42
+ "@nx/js": "22.2.0-canary.20251120-aa38b25",
43
+ "@nx/eslint": "22.2.0-canary.20251120-aa38b25",
44
+ "@nx/web": "22.2.0-canary.20251120-aa38b25",
45
+ "@nx/module-federation": "22.2.0-canary.20251120-aa38b25",
46
+ "@nx/rollup": "22.2.0-canary.20251120-aa38b25",
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": "22.1.0",
53
- "@nx/playwright": "22.1.0",
54
- "@nx/rsbuild": "22.1.0",
55
- "@nx/vite": "22.1.0",
56
- "@nx/vitest": "22.1.0",
57
- "@nx/webpack": "22.1.0",
58
- "nx": "22.1.0"
52
+ "@nx/cypress": "22.2.0-canary.20251120-aa38b25",
53
+ "@nx/playwright": "22.2.0-canary.20251120-aa38b25",
54
+ "@nx/rsbuild": "22.2.0-canary.20251120-aa38b25",
55
+ "@nx/vite": "22.2.0-canary.20251120-aa38b25",
56
+ "@nx/vitest": "22.2.0-canary.20251120-aa38b25",
57
+ "@nx/webpack": "22.2.0-canary.20251120-aa38b25",
58
+ "nx": "22.2.0-canary.20251120-aa38b25"
59
59
  },
60
60
  "optionalDependencies": {
61
- "@nx/vite": "22.1.0"
61
+ "@nx/vite": "22.2.0-canary.20251120-aa38b25"
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,iBAwDb;AAED,wBAAsB,wBAAwB,CAC5C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,CAAC,MAAM,CAAC,EACjC,KAAK,EAAE,GAAG,EAAE,iBAyCb"}
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"}
@@ -44,6 +44,7 @@ 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,
47
48
  ...(options.useReactRouter
48
49
  ? reactRouterFrameworkConfig
49
50
  : baseReactConfig),
@@ -74,8 +75,9 @@ async function setupVitestConfiguration(tree, options, tasks) {
74
75
  : `import react from '@vitejs/plugin-react'`,
75
76
  ],
76
77
  plugins: ['react()'],
78
+ useEsmExtension: true,
77
79
  }, true);
78
80
  if (options.bundler === 'rsbuild') {
79
- tree.rename((0, devkit_1.joinPathFragments)(options.appProjectRoot, 'vite.config.ts'), (0, devkit_1.joinPathFragments)(options.appProjectRoot, 'vitest.config.ts'));
81
+ tree.rename((0, devkit_1.joinPathFragments)(options.appProjectRoot, 'vite.config.mts'), (0, devkit_1.joinPathFragments)(options.appProjectRoot, 'vitest.config.mts'));
80
82
  }
81
83
  }
@@ -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,8BAwRxE;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,8BA0RxE;AAED,eAAe,gBAAgB,CAAC"}
@@ -120,6 +120,7 @@ async function libraryGeneratorInternal(host, schema) {
120
120
  : `import react from '@vitejs/plugin-react'`,
121
121
  ],
122
122
  plugins: ['react()'],
123
+ useEsmExtension: true,
123
124
  }, false);
124
125
  }
125
126
  else if (options.buildable && options.bundler === 'rollup') {
@@ -178,6 +179,7 @@ async function libraryGeneratorInternal(host, schema) {
178
179
  : `import react from '@vitejs/plugin-react'`,
179
180
  ],
180
181
  plugins: ['react()'],
182
+ useEsmExtension: true,
181
183
  }, true);
182
184
  }
183
185
  if (options.component) {