@umijs/bundler-webpack 4.0.83 → 4.0.85
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/config.js +1 -4
- package/dist/config/cssRules.js +2 -1
- package/dist/schema.js +1 -0
- package/package.json +5 -5
package/dist/config/config.js
CHANGED
|
@@ -168,10 +168,7 @@ async function getConfig(opts) {
|
|
|
168
168
|
"bundler-webpack"
|
|
169
169
|
)
|
|
170
170
|
});
|
|
171
|
-
if (
|
|
172
|
-
/*isTnpm*/
|
|
173
|
-
require("@umijs/utils/package").__npminstall_done
|
|
174
|
-
) {
|
|
171
|
+
if (require.resolve("@umijs/utils/package").includes("_@umijs_utils@")) {
|
|
175
172
|
const nodeModulesPath = opts.cache.absNodeModulesPath || (0, import_path.join)(opts.rootDir || opts.cwd, "node_modules");
|
|
176
173
|
const localLinkedNodeModules = Object.keys(
|
|
177
174
|
Object.assign(
|
package/dist/config/cssRules.js
CHANGED
|
@@ -63,6 +63,7 @@ async function addCSSRules(opts) {
|
|
|
63
63
|
loaderOptions: userConfig.stylusLoader || {}
|
|
64
64
|
}
|
|
65
65
|
];
|
|
66
|
+
const cssPublicPath = userConfig.cssPublicPath || "./";
|
|
66
67
|
for (const { name, test, loader, loaderOptions } of rulesConfig) {
|
|
67
68
|
const rule = config.module.rule(name);
|
|
68
69
|
const nestRulesConfig = [
|
|
@@ -84,7 +85,7 @@ async function addCSSRules(opts) {
|
|
|
84
85
|
rule2.use("mini-css-extract-plugin").loader(
|
|
85
86
|
require.resolve("@umijs/bundler-webpack/compiled/mini-css-extract-plugin/loader")
|
|
86
87
|
).options({
|
|
87
|
-
publicPath:
|
|
88
|
+
publicPath: cssPublicPath,
|
|
88
89
|
emit: true,
|
|
89
90
|
esModule: true
|
|
90
91
|
});
|
package/dist/schema.js
CHANGED
|
@@ -77,6 +77,7 @@ function getSchemas() {
|
|
|
77
77
|
import_types.CSSMinifier.none
|
|
78
78
|
]),
|
|
79
79
|
cssMinifierOptions: ({ zod }) => zod.record(zod.string(), zod.any()),
|
|
80
|
+
cssPublicPath: ({ zod }) => zod.string(),
|
|
80
81
|
deadCode: ({ zod }) => zod.object({
|
|
81
82
|
context: zod.string(),
|
|
82
83
|
detectUnusedExport: zod.boolean(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/bundler-webpack",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.85",
|
|
4
4
|
"description": "@umijs/bundler-webpack",
|
|
5
5
|
"homepage": "https://github.com/umijs/umi/tree/master/packages/bundler-webpack#readme",
|
|
6
6
|
"bugs": "https://github.com/umijs/umi/issues",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"postcss-preset-env": "7.5.0",
|
|
39
39
|
"react-error-overlay": "6.0.9",
|
|
40
40
|
"react-refresh": "0.14.0",
|
|
41
|
-
"@umijs/
|
|
42
|
-
"@umijs/bundler-utils": "4.0.
|
|
43
|
-
"@umijs/
|
|
44
|
-
"@umijs/
|
|
41
|
+
"@umijs/babel-preset-umi": "4.0.85",
|
|
42
|
+
"@umijs/bundler-utils": "4.0.85",
|
|
43
|
+
"@umijs/mfsu": "4.0.85",
|
|
44
|
+
"@umijs/utils": "4.0.85"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@swc/core": "1.3.67",
|