@rsbuild/plugin-svgr 0.3.9 → 0.3.11
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.js +1 -0
- package/dist/index.mjs +5 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -58,6 +58,7 @@ var pluginSvgr = (options = {}) => ({
|
|
|
58
58
|
name: "rsbuild:svgr",
|
|
59
59
|
pre: [
|
|
60
60
|
// SVGR needs to reuse the SWC loader options with react config
|
|
61
|
+
import_core.PLUGIN_SWC_NAME,
|
|
61
62
|
import_plugin_react.PLUGIN_REACT_NAME,
|
|
62
63
|
import_core.PLUGIN_BABEL_NAME,
|
|
63
64
|
"uni-builder:babel"
|
package/dist/index.mjs
CHANGED
|
@@ -21,7 +21,10 @@ import {
|
|
|
21
21
|
chainStaticAssetRule
|
|
22
22
|
} from "@rsbuild/shared";
|
|
23
23
|
import { PLUGIN_REACT_NAME } from "@rsbuild/plugin-react";
|
|
24
|
-
import {
|
|
24
|
+
import {
|
|
25
|
+
PLUGIN_BABEL_NAME,
|
|
26
|
+
PLUGIN_SWC_NAME
|
|
27
|
+
} from "@rsbuild/core";
|
|
25
28
|
function getSvgoDefaultConfig() {
|
|
26
29
|
return {
|
|
27
30
|
plugins: [
|
|
@@ -43,6 +46,7 @@ var pluginSvgr = (options = {}) => ({
|
|
|
43
46
|
name: "rsbuild:svgr",
|
|
44
47
|
pre: [
|
|
45
48
|
// SVGR needs to reuse the SWC loader options with react config
|
|
49
|
+
PLUGIN_SWC_NAME,
|
|
46
50
|
PLUGIN_REACT_NAME,
|
|
47
51
|
PLUGIN_BABEL_NAME,
|
|
48
52
|
"uni-builder:babel"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-svgr",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.11",
|
|
4
4
|
"description": "svgr plugin for Rsbuild",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,17 +26,17 @@
|
|
|
26
26
|
"@svgr/core": "8.1.0",
|
|
27
27
|
"@svgr/plugin-jsx": "8.1.0",
|
|
28
28
|
"@svgr/plugin-svgo": "8.1.0",
|
|
29
|
-
"@rsbuild/shared": "0.3.
|
|
30
|
-
"@rsbuild/plugin-react": "0.3.
|
|
29
|
+
"@rsbuild/shared": "0.3.11",
|
|
30
|
+
"@rsbuild/plugin-react": "0.3.11"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/node": "16.x",
|
|
34
34
|
"typescript": "^5.3.0",
|
|
35
|
-
"@rsbuild/core": "0.3.
|
|
36
|
-
"@scripts/test-helper": "0.3.
|
|
35
|
+
"@rsbuild/core": "0.3.11",
|
|
36
|
+
"@scripts/test-helper": "0.3.11"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@rsbuild/core": "^0.3.
|
|
39
|
+
"@rsbuild/core": "^0.3.11"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public",
|