@umijs/bundler-utoopack 4.5.1-canary.20250928.1 → 4.5.2
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 +6 -2
- package/package.json +5 -5
package/dist/config.js
CHANGED
|
@@ -116,13 +116,15 @@ async function getProdUtooPackConfig(opts) {
|
|
|
116
116
|
];
|
|
117
117
|
const modularizeImports = getModularizeImports(extraBabelPlugins);
|
|
118
118
|
const processEnvForUtoopack = convertProcessEnvForUtoopack(webpackConfig);
|
|
119
|
+
const { publicPath, runtimePublicPath } = opts.config;
|
|
119
120
|
utooBundlerOpts = {
|
|
120
121
|
...utooBundlerOpts,
|
|
121
122
|
config: import_utils.lodash.merge(
|
|
122
123
|
utooBundlerOpts.config,
|
|
123
124
|
{
|
|
124
125
|
output: {
|
|
125
|
-
clean: opts.clean
|
|
126
|
+
clean: opts.clean,
|
|
127
|
+
publicPath: runtimePublicPath ? "runtime" : publicPath || "/"
|
|
126
128
|
},
|
|
127
129
|
optimization: {
|
|
128
130
|
modularizeImports,
|
|
@@ -188,6 +190,7 @@ async function getDevUtooPackConfig(opts) {
|
|
|
188
190
|
];
|
|
189
191
|
const modularizeImports = getModularizeImports(extraBabelPlugins);
|
|
190
192
|
const processEnvForUtoopack = convertProcessEnvForUtoopack(webpackConfig);
|
|
193
|
+
const { publicPath, runtimePublicPath } = opts.config;
|
|
191
194
|
utooBundlerOpts = {
|
|
192
195
|
...utooBundlerOpts,
|
|
193
196
|
config: import_utils.lodash.merge(
|
|
@@ -195,7 +198,8 @@ async function getDevUtooPackConfig(opts) {
|
|
|
195
198
|
{
|
|
196
199
|
output: {
|
|
197
200
|
// utoopack 的 dev 需要默认清空产物目录
|
|
198
|
-
clean: opts.clean === void 0 ? true : opts.clean
|
|
201
|
+
clean: opts.clean === void 0 ? true : opts.clean,
|
|
202
|
+
publicPath: runtimePublicPath ? "runtime" : publicPath || "/"
|
|
199
203
|
},
|
|
200
204
|
resolve: {
|
|
201
205
|
alias: getNormalizedAlias(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/bundler-utoopack",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.2",
|
|
4
4
|
"description": "@umijs/bundler-utoopack",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
"cors": "^2.8.5",
|
|
14
14
|
"express": "^4.18.2",
|
|
15
15
|
"express-http-proxy": "^2.1.1",
|
|
16
|
-
"@umijs/bundler-
|
|
17
|
-
"@umijs/bundler-
|
|
16
|
+
"@umijs/bundler-webpack": "4.5.2",
|
|
17
|
+
"@umijs/bundler-utils": "4.5.2"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@utoo/pack": "^0.0.1-alpha.
|
|
20
|
+
"@utoo/pack": "^0.0.1-alpha.56",
|
|
21
21
|
"father": "4.1.5"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@utoo/pack": "^0.0.1-alpha.
|
|
24
|
+
"@utoo/pack": "^0.0.1-alpha.56"
|
|
25
25
|
},
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|