@umijs/bundler-utoopack 4.0.0-canary.20260105.0 → 4.0.0-canary.20260106.1
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/config.js +7 -25
- package/package.json +4 -4
package/dist/config.js
CHANGED
|
@@ -152,38 +152,20 @@ function getSvgModuleRules(opts) {
|
|
|
152
152
|
"*.svg": {
|
|
153
153
|
loaders: [
|
|
154
154
|
{
|
|
155
|
-
loader: require.resolve("@
|
|
156
|
-
options: {
|
|
157
|
-
svgoConfig: {
|
|
158
|
-
plugins: [
|
|
159
|
-
{
|
|
160
|
-
name: "preset-default",
|
|
161
|
-
params: {
|
|
162
|
-
overrides: {
|
|
163
|
-
removeTitle: false
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
"prefixIds"
|
|
168
|
-
],
|
|
169
|
-
...typeof svgo === "object" ? svgo : {}
|
|
170
|
-
},
|
|
171
|
-
...svgr,
|
|
172
|
-
svgo: !!svgo
|
|
173
|
-
},
|
|
155
|
+
loader: require.resolve("@svgr/webpack"),
|
|
174
156
|
condition: {
|
|
175
157
|
all: [
|
|
176
158
|
// Exclude node_modules (similar to excluding non-source files)
|
|
177
159
|
{ not: "foreign" },
|
|
160
|
+
// Match JavaScript/TypeScript files
|
|
178
161
|
{ path: /\.[jt]sx?$/ }
|
|
179
162
|
]
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
loader: require.resolve("@umijs/bundler-webpack/compiled/url-loader"),
|
|
163
|
+
},
|
|
184
164
|
options: {
|
|
185
|
-
|
|
186
|
-
|
|
165
|
+
exportType: "named",
|
|
166
|
+
namedExport: "ReactComponent",
|
|
167
|
+
ref: true,
|
|
168
|
+
svgo: !!svgo
|
|
187
169
|
}
|
|
188
170
|
}
|
|
189
171
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/bundler-utoopack",
|
|
3
|
-
"version": "4.0.0-canary.
|
|
3
|
+
"version": "4.0.0-canary.20260106.1",
|
|
4
4
|
"description": "@umijs/bundler-utoopack",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
"dist"
|
|
9
9
|
],
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@utoo/pack": "1.1.
|
|
11
|
+
"@utoo/pack": "1.1.17",
|
|
12
12
|
"compression": "^1.7.4",
|
|
13
13
|
"connect-history-api-fallback": "^2.0.0",
|
|
14
14
|
"cors": "^2.8.5",
|
|
15
15
|
"express": "^4.18.2",
|
|
16
16
|
"express-http-proxy": "^2.1.1",
|
|
17
|
-
"@umijs/bundler-utils": "4.0.0-canary.
|
|
18
|
-
"@umijs/bundler-webpack": "4.0.0-canary.
|
|
17
|
+
"@umijs/bundler-utils": "4.0.0-canary.20260106.1",
|
|
18
|
+
"@umijs/bundler-webpack": "4.0.0-canary.20260106.1"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"father": "4.1.5"
|