@nx/react 16.7.2 → 16.7.4

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": "16.7.2",
3
+ "version": "16.7.4",
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": {
@@ -31,11 +31,11 @@
31
31
  "migrations": "./migrations.json"
32
32
  },
33
33
  "dependencies": {
34
- "@nrwl/react": "16.7.2",
35
- "@nx/devkit": "16.7.2",
36
- "@nx/js": "16.7.2",
37
- "@nx/linter": "16.7.2",
38
- "@nx/web": "16.7.2",
34
+ "@nrwl/react": "16.7.4",
35
+ "@nx/devkit": "16.7.4",
36
+ "@nx/js": "16.7.4",
37
+ "@nx/linter": "16.7.4",
38
+ "@nx/web": "16.7.4",
39
39
  "@phenomnomnominal/tsquery": "~5.0.1",
40
40
  "@svgr/webpack": "^8.0.1",
41
41
  "chalk": "^4.1.0",
@@ -47,5 +47,5 @@
47
47
  "access": "public"
48
48
  },
49
49
  "type": "commonjs",
50
- "gitHead": "b024f44a1ad4e1773e80f6dc72f9d22766b950f9"
50
+ "gitHead": "5d73f6e0f2c6d4dfb2e9d45519d591c338bb5c37"
51
51
  }
@@ -56,32 +56,36 @@ function createApplicationFiles(host, options) {
56
56
  ].filter(Boolean),
57
57
  });
58
58
  }
59
- else if (options.style === 'styled-components' ||
60
- options.style === '@emotion/styled' ||
61
- options.style === 'styled-jsx') {
62
- (0, devkit_1.writeJson)(host, `${options.appProjectRoot}/.swcrc`, {
59
+ else if (options.compiler === 'swc') {
60
+ const swcrc = {
63
61
  jsc: {
64
- experimental: {
65
- plugins: [
66
- options.style === 'styled-components'
67
- ? [
68
- '@swc/plugin-styled-components',
69
- {
70
- displayName: true,
71
- ssr: true,
72
- },
73
- ]
74
- : undefined,
75
- options.style === 'styled-jsx'
76
- ? ['@swc/plugin-styled-jsx', {}]
77
- : undefined,
78
- options.style === '@emotion/styled'
79
- ? ['@swc/plugin-emotion', {}]
80
- : undefined,
81
- ].filter(Boolean),
82
- },
62
+ target: 'es2016',
83
63
  },
84
- });
64
+ };
65
+ if (options.style === 'styled-components') {
66
+ swcrc.jsc.experimental = {
67
+ plugins: [
68
+ [
69
+ '@swc/plugin-styled-components',
70
+ {
71
+ displayName: true,
72
+ ssr: true,
73
+ },
74
+ ],
75
+ ],
76
+ };
77
+ }
78
+ else if (options.style === '@emotion/styled') {
79
+ swcrc.jsc.experimental = {
80
+ plugins: [['@swc/plugin-emotion', {}]],
81
+ };
82
+ }
83
+ else if (options.style === 'styled-jsx') {
84
+ swcrc.jsc.experimental = {
85
+ plugins: [['@swc/plugin-styled-jsx', {}]],
86
+ };
87
+ }
88
+ (0, devkit_1.writeJson)(host, `${options.appProjectRoot}/.swcrc`, swcrc);
85
89
  }
86
90
  }
87
91
  else if (options.bundler === 'rspack') {
@@ -153,7 +153,6 @@
153
153
  "devServerPort": {
154
154
  "type": "number",
155
155
  "description": "The port for the dev server of the remote app.",
156
- "default": 4200,
157
156
  "x-priority": "important"
158
157
  },
159
158
  "ssr": {