@rsbuild/plugin-svgr 1.2.4 → 2.0.0-alpha.3
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/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -99,7 +99,7 @@ const src_dirname = external_node_path_default().dirname((0, external_node_url_n
|
|
|
99
99
|
maxSize
|
|
100
100
|
}
|
|
101
101
|
}).set('generator', generatorOptions);
|
|
102
|
-
let jsRule = chain.module.rules.get(CHAIN_ID.RULE.JS);
|
|
102
|
+
let jsRule = chain.module.rules.get(CHAIN_ID.RULE.JS).oneOfs.get(CHAIN_ID.ONE_OF.JS_MAIN);
|
|
103
103
|
[
|
|
104
104
|
CHAIN_ID.USE.SWC,
|
|
105
105
|
CHAIN_ID.USE.BABEL
|
package/dist/index.js
CHANGED
|
@@ -74,7 +74,7 @@ let src_dirname = node_path.dirname(fileURLToPath(import.meta.url)), SVG_REGEX =
|
|
|
74
74
|
maxSize
|
|
75
75
|
}
|
|
76
76
|
}).set('generator', generatorOptions);
|
|
77
|
-
let jsRule = chain.module.rules.get(CHAIN_ID.RULE.JS);
|
|
77
|
+
let jsRule = chain.module.rules.get(CHAIN_ID.RULE.JS).oneOfs.get(CHAIN_ID.ONE_OF.JS_MAIN);
|
|
78
78
|
[
|
|
79
79
|
CHAIN_ID.USE.SWC,
|
|
80
80
|
CHAIN_ID.USE.BABEL
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-svgr",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-alpha.3",
|
|
4
4
|
"description": "SVGR plugin for Rsbuild",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"compiled"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@rsbuild/plugin-react": "^
|
|
26
|
+
"@rsbuild/plugin-react": "^2.0.0-0",
|
|
27
27
|
"@svgr/core": "8.1.0",
|
|
28
28
|
"@svgr/plugin-jsx": "8.1.0",
|
|
29
29
|
"@svgr/plugin-svgo": "8.1.0",
|
|
@@ -31,18 +31,18 @@
|
|
|
31
31
|
"loader-utils": "^3.3.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@rslib/core": "0.19.
|
|
35
|
-
"@types/node": "^24.10.
|
|
34
|
+
"@rslib/core": "0.19.3",
|
|
35
|
+
"@types/node": "^24.10.9",
|
|
36
36
|
"file-loader": "6.2.0",
|
|
37
|
-
"prebundle": "1.6.
|
|
37
|
+
"prebundle": "1.6.2",
|
|
38
38
|
"svgo": "^3.3.2",
|
|
39
39
|
"typescript": "^5.9.3",
|
|
40
40
|
"url-loader": "4.1.1",
|
|
41
|
-
"@rsbuild/core": "
|
|
41
|
+
"@rsbuild/core": "2.0.0-alpha.3",
|
|
42
42
|
"@scripts/test-helper": "1.0.1"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@rsbuild/core": "^
|
|
45
|
+
"@rsbuild/core": "^2.0.0-0"
|
|
46
46
|
},
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public",
|