@umijs/bundler-utoopack 4.6.32 → 4.6.34
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 +10 -2
- package/package.json +4 -4
package/dist/config.js
CHANGED
|
@@ -215,6 +215,9 @@ async function getProdUtooPackConfig(opts) {
|
|
|
215
215
|
...opts.config.extraBabelPlugins || []
|
|
216
216
|
];
|
|
217
217
|
const modularizeImports = getModularizeImports(extraBabelPlugins);
|
|
218
|
+
const emotion = extraBabelPlugins.some((p) => {
|
|
219
|
+
return p === "@emotion" || p === "@emotion/babel-plugin";
|
|
220
|
+
});
|
|
218
221
|
const processEnvForUtoopack = convertProcessEnvForUtoopack(webpackConfig);
|
|
219
222
|
const {
|
|
220
223
|
publicPath,
|
|
@@ -251,7 +254,8 @@ async function getProdUtooPackConfig(opts) {
|
|
|
251
254
|
javascriptEnabled: true,
|
|
252
255
|
...opts.config.lessLoader
|
|
253
256
|
},
|
|
254
|
-
sass: opts.config.sassLoader ?? void 0
|
|
257
|
+
sass: opts.config.sassLoader ?? void 0,
|
|
258
|
+
emotion
|
|
255
259
|
},
|
|
256
260
|
// Override process.env for utoopack format
|
|
257
261
|
define: {
|
|
@@ -299,6 +303,9 @@ async function getDevUtooPackConfig(opts) {
|
|
|
299
303
|
...opts.config.extraBabelPlugins || []
|
|
300
304
|
];
|
|
301
305
|
const modularizeImports = getModularizeImports(extraBabelPlugins);
|
|
306
|
+
const emotion = extraBabelPlugins.some((p) => {
|
|
307
|
+
return p === "@emotion" || p === "@emotion/babel-plugin";
|
|
308
|
+
});
|
|
302
309
|
const processEnvForUtoopack = convertProcessEnvForUtoopack(webpackConfig);
|
|
303
310
|
const {
|
|
304
311
|
publicPath,
|
|
@@ -336,7 +343,8 @@ async function getDevUtooPackConfig(opts) {
|
|
|
336
343
|
javascriptEnabled: true,
|
|
337
344
|
...opts.config.lessLoader
|
|
338
345
|
},
|
|
339
|
-
sass: opts.config.sassLoader ?? void 0
|
|
346
|
+
sass: opts.config.sassLoader ?? void 0,
|
|
347
|
+
emotion
|
|
340
348
|
},
|
|
341
349
|
// Override process.env for utoopack format
|
|
342
350
|
define: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/bundler-utoopack",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.34",
|
|
4
4
|
"description": "@umijs/bundler-utoopack",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"dist"
|
|
9
9
|
],
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@utoo/pack": "1.2
|
|
11
|
+
"@utoo/pack": "1.3.2",
|
|
12
12
|
"compression": "^1.7.4",
|
|
13
13
|
"connect-history-api-fallback": "^2.0.0",
|
|
14
14
|
"cors": "^2.8.5",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"postcss": "^8.4.21",
|
|
20
20
|
"sass": "1.54.0",
|
|
21
21
|
"sass-loader": "13.2.0",
|
|
22
|
-
"@umijs/bundler-utils": "4.6.
|
|
23
|
-
"@umijs/bundler-webpack": "4.6.
|
|
22
|
+
"@umijs/bundler-utils": "4.6.34",
|
|
23
|
+
"@umijs/bundler-webpack": "4.6.34"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"father": "4.1.5"
|