@nx/react 0.0.0-pr-29464-ce11848 → 0.0.0-pr-3-16b3273

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-29464-ce11848",
3
+ "version": "0.0.0-pr-3-16b3273",
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,11 +38,11 @@
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-29464-ce11848",
42
- "@nx/js": "0.0.0-pr-29464-ce11848",
43
- "@nx/eslint": "0.0.0-pr-29464-ce11848",
44
- "@nx/web": "0.0.0-pr-29464-ce11848",
45
- "@nx/module-federation": "0.0.0-pr-29464-ce11848",
41
+ "@nx/devkit": "0.0.0-pr-3-16b3273",
42
+ "@nx/js": "0.0.0-pr-3-16b3273",
43
+ "@nx/eslint": "0.0.0-pr-3-16b3273",
44
+ "@nx/web": "0.0.0-pr-3-16b3273",
45
+ "@nx/module-federation": "0.0.0-pr-3-16b3273",
46
46
  "express": "^4.21.2",
47
47
  "http-proxy-middleware": "^3.0.3",
48
48
  "semver": "^7.6.3"
@@ -1,6 +1,4 @@
1
1
  import { Tree } from 'nx/src/generators/tree';
2
2
  import { GeneratorCallback } from '@nx/devkit';
3
3
  import { NormalizedSchema } from '../schema';
4
- export declare function addRollupBuildTarget(host: Tree, options: NormalizedSchema & {
5
- format?: Array<'esm' | 'cjs'>;
6
- }, external?: Set<String>): Promise<GeneratorCallback>;
4
+ export declare function addRollupBuildTarget(host: Tree, options: NormalizedSchema): Promise<GeneratorCallback>;
@@ -4,7 +4,7 @@ exports.addRollupBuildTarget = addRollupBuildTarget;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const maybe_js_1 = require("../../../utils/maybe-js");
6
6
  const versions_1 = require("../../../utils/versions");
7
- async function addRollupBuildTarget(host, options, external = new Set(['react', 'react-dom'])) {
7
+ async function addRollupBuildTarget(host, options) {
8
8
  const tasks = [];
9
9
  const { configurationGenerator } = (0, devkit_1.ensurePackage)('@nx/rollup', versions_1.nxVersion);
10
10
  tasks.push(await configurationGenerator(host, {
@@ -19,11 +19,12 @@ async function addRollupBuildTarget(host, options, external = new Set(['react',
19
19
  '@svgr/rollup': versions_1.svgrRollupVersion,
20
20
  }));
21
21
  }
22
+ const external = ['react', 'react-dom'];
22
23
  if (options.style === '@emotion/styled') {
23
- external.add('@emotion/react/jsx-runtime');
24
+ external.push('@emotion/react/jsx-runtime');
24
25
  }
25
26
  else {
26
- external.add('react/jsx-runtime');
27
+ external.push('react/jsx-runtime');
27
28
  }
28
29
  const nxJson = (0, devkit_1.readNxJson)(host);
29
30
  const hasRollupPlugin = !!nxJson.plugins?.some((p) => typeof p === 'string'
@@ -43,8 +44,8 @@ module.exports = withNx(
43
44
  : (0, devkit_1.joinPathFragments)((0, devkit_1.offsetFromRoot)(options.projectRoot), 'dist', options.projectRoot)}',
44
45
  tsConfig: './tsconfig.lib.json',
45
46
  compiler: '${options.compiler ?? 'babel'}',
46
- external: ${JSON.stringify(Array.from(external))},
47
- format: ${JSON.stringify(options.format ?? ['esm'])},
47
+ external: ${JSON.stringify(external)},
48
+ format: ['esm'],
48
49
  assets:[{ input: '.', output: '.', glob: 'README.md'}],
49
50
  }, {
50
51
  // Provide additional rollup configuration here. See: https://rollupjs.org/configuration-options
@@ -73,7 +74,7 @@ module.exports = withNx(
73
74
  tsConfig: `${options.projectRoot}/tsconfig.lib.json`,
74
75
  project: `${options.projectRoot}/package.json`,
75
76
  entryFile: (0, maybe_js_1.maybeJs)(options, `${options.projectRoot}/src/index.ts`),
76
- external: Array.from(external),
77
+ external,
77
78
  rollupConfig: `@nx/react/plugins/bundle-rollup`,
78
79
  compiler: options.compiler ?? 'babel',
79
80
  assets: [
@@ -42,8 +42,8 @@ export declare const typesExpressVersion = "^4.17.21";
42
42
  export declare const isbotVersion = "^3.6.5";
43
43
  export declare const corsVersion = "~2.8.5";
44
44
  export declare const typesCorsVersion = "~2.8.12";
45
- export declare const moduleFederationNodeVersion = "^2.6.26";
46
- export declare const moduleFederationEnhancedVersion = "^0.9.0";
45
+ export declare const moduleFederationNodeVersion = "^2.6.21";
46
+ export declare const moduleFederationEnhancedVersion = "^0.8.8";
47
47
  export declare const lessVersion = "3.12.2";
48
48
  export declare const sassVersion = "^1.55.0";
49
49
  export declare const rollupPluginUrlVersion = "^8.0.2";
@@ -48,8 +48,8 @@ exports.typesExpressVersion = '^4.17.21';
48
48
  exports.isbotVersion = '^3.6.5';
49
49
  exports.corsVersion = '~2.8.5';
50
50
  exports.typesCorsVersion = '~2.8.12';
51
- exports.moduleFederationNodeVersion = '^2.6.26';
52
- exports.moduleFederationEnhancedVersion = '^0.9.0';
51
+ exports.moduleFederationNodeVersion = '^2.6.21';
52
+ exports.moduleFederationEnhancedVersion = '^0.8.8';
53
53
  // style preprocessors
54
54
  exports.lessVersion = '3.12.2';
55
55
  exports.sassVersion = '^1.55.0';