@nx/react 0.0.0-pr-34223-4381fee → 0.0.0-pr-34205-6b29262
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-
|
|
3
|
+
"version": "0.0.0-pr-34205-6b29262",
|
|
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": {
|
|
@@ -34,31 +34,32 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@phenomnomnominal/tsquery": "~6.1.4",
|
|
36
36
|
"@svgr/webpack": "^8.0.1",
|
|
37
|
+
"file-loader": "^6.2.0",
|
|
37
38
|
"minimatch": "10.1.1",
|
|
38
39
|
"picocolors": "^1.1.0",
|
|
39
40
|
"tslib": "^2.3.0",
|
|
40
|
-
"@nx/devkit": "0.0.0-pr-
|
|
41
|
-
"@nx/js": "0.0.0-pr-
|
|
42
|
-
"@nx/eslint": "0.0.0-pr-
|
|
43
|
-
"@nx/web": "0.0.0-pr-
|
|
44
|
-
"@nx/module-federation": "0.0.0-pr-
|
|
45
|
-
"@nx/rollup": "0.0.0-pr-
|
|
41
|
+
"@nx/devkit": "0.0.0-pr-34205-6b29262",
|
|
42
|
+
"@nx/js": "0.0.0-pr-34205-6b29262",
|
|
43
|
+
"@nx/eslint": "0.0.0-pr-34205-6b29262",
|
|
44
|
+
"@nx/web": "0.0.0-pr-34205-6b29262",
|
|
45
|
+
"@nx/module-federation": "0.0.0-pr-34205-6b29262",
|
|
46
|
+
"@nx/rollup": "0.0.0-pr-34205-6b29262",
|
|
46
47
|
"express": "^4.21.2",
|
|
47
48
|
"http-proxy-middleware": "^3.0.5",
|
|
48
49
|
"semver": "^7.6.3"
|
|
49
50
|
},
|
|
50
51
|
"devDependencies": {
|
|
51
|
-
"@nx/cypress": "0.0.0-pr-
|
|
52
|
-
"@nx/playwright": "0.0.0-pr-
|
|
53
|
-
"@nx/rsbuild": "0.0.0-pr-
|
|
54
|
-
"@nx/vite": "0.0.0-pr-
|
|
55
|
-
"@nx/vitest": "0.0.0-pr-
|
|
56
|
-
"@nx/webpack": "0.0.0-pr-
|
|
57
|
-
"@nx/storybook": "0.0.0-pr-
|
|
58
|
-
"nx": "0.0.0-pr-
|
|
52
|
+
"@nx/cypress": "0.0.0-pr-34205-6b29262",
|
|
53
|
+
"@nx/playwright": "0.0.0-pr-34205-6b29262",
|
|
54
|
+
"@nx/rsbuild": "0.0.0-pr-34205-6b29262",
|
|
55
|
+
"@nx/vite": "0.0.0-pr-34205-6b29262",
|
|
56
|
+
"@nx/vitest": "0.0.0-pr-34205-6b29262",
|
|
57
|
+
"@nx/webpack": "0.0.0-pr-34205-6b29262",
|
|
58
|
+
"@nx/storybook": "0.0.0-pr-34205-6b29262",
|
|
59
|
+
"nx": "0.0.0-pr-34205-6b29262"
|
|
59
60
|
},
|
|
60
61
|
"optionalDependencies": {
|
|
61
|
-
"@nx/vite": "0.0.0-pr-
|
|
62
|
+
"@nx/vite": "0.0.0-pr-34205-6b29262"
|
|
62
63
|
},
|
|
63
64
|
"publishConfig": {
|
|
64
65
|
"access": "public"
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type Tree } from '@nx/devkit';
|
|
2
|
-
export default function addSvgrToWebpackConfig(tree: Tree): Promise<
|
|
2
|
+
export default function addSvgrToWebpackConfig(tree: Tree): Promise<import("@nx/devkit").GeneratorCallback>;
|
|
3
3
|
//# sourceMappingURL=add-svgr-to-webpack-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-svgr-to-webpack-config.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/migrations/update-22-0-0/add-svgr-to-webpack-config.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,
|
|
1
|
+
{"version":3,"file":"add-svgr-to-webpack-config.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/migrations/update-22-0-0/add-svgr-to-webpack-config.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAOV,MAAM,YAAY,CAAC;AAuGpB,wBAA8B,sBAAsB,CAAC,IAAI,EAAE,IAAI,mDA+X9D"}
|
|
@@ -30,25 +30,20 @@ function withSvgr(svgrOptions = {}) {
|
|
|
30
30
|
config.module.rules.splice(svgLoaderIdx, 1);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
// Add SVGR loader
|
|
33
|
+
// Add SVGR loader
|
|
34
34
|
config.module.rules.push({
|
|
35
35
|
test: /\\.svg$/,
|
|
36
|
-
|
|
36
|
+
issuer: /\\.(js|ts|md)x?$/,
|
|
37
|
+
use: [
|
|
37
38
|
{
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
generator: {
|
|
41
|
-
filename: '[name].[hash][ext]',
|
|
42
|
-
},
|
|
39
|
+
loader: require.resolve('@svgr/webpack'),
|
|
40
|
+
options,
|
|
43
41
|
},
|
|
44
42
|
{
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
options,
|
|
50
|
-
},
|
|
51
|
-
],
|
|
43
|
+
loader: require.resolve('file-loader'),
|
|
44
|
+
options: {
|
|
45
|
+
name: '[name].[hash].[ext]',
|
|
46
|
+
},
|
|
52
47
|
},
|
|
53
48
|
],
|
|
54
49
|
});
|
|
@@ -83,25 +78,20 @@ function withSvgr(svgrOptions = {}) {
|
|
|
83
78
|
)
|
|
84
79
|
);
|
|
85
80
|
|
|
86
|
-
// Add SVGR loader with
|
|
81
|
+
// Add SVGR loader with both default and named exports
|
|
87
82
|
compiler.options.module.rules.push({
|
|
88
83
|
test: /\.svg$/,
|
|
89
|
-
|
|
84
|
+
issuer: /\.[jt]sx?$/,
|
|
85
|
+
use: [
|
|
90
86
|
{
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
generator: {
|
|
94
|
-
filename: '[name].[hash][ext]',
|
|
95
|
-
},
|
|
87
|
+
loader: require.resolve('@svgr/webpack'),
|
|
88
|
+
options,
|
|
96
89
|
},
|
|
97
90
|
{
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
options,
|
|
103
|
-
},
|
|
104
|
-
],
|
|
91
|
+
loader: require.resolve('file-loader'),
|
|
92
|
+
options: {
|
|
93
|
+
name: '[name].[hash].[ext]',
|
|
94
|
+
},
|
|
105
95
|
},
|
|
106
96
|
],
|
|
107
97
|
});
|
|
@@ -406,4 +396,8 @@ async function addSvgrToWebpackConfig(tree) {
|
|
|
406
396
|
tree.write(webpackConfigPath, content);
|
|
407
397
|
}
|
|
408
398
|
await (0, devkit_1.formatFiles)(tree);
|
|
399
|
+
// Add file-loader as a dev dependency since it's now required for SVGR
|
|
400
|
+
return (0, devkit_1.addDependenciesToPackageJson)(tree, {}, {
|
|
401
|
+
'file-loader': '^6.2.0',
|
|
402
|
+
});
|
|
409
403
|
}
|