@umijs/plugins 4.6.81 → 4.6.83
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/antd.js +4 -1
- package/package.json +3 -3
package/dist/antd.js
CHANGED
|
@@ -59,6 +59,7 @@ var antd_default = (api) => {
|
|
|
59
59
|
// 两者都还在维护周期中,允许使用预发布版本. eg. 6.1.0-alpha.0
|
|
60
60
|
{ includePrerelease: true }
|
|
61
61
|
);
|
|
62
|
+
const isV6 = import_plugin_utils.semver.major(antdVersion) === 6;
|
|
62
63
|
const isLegacy = import_plugin_utils.semver.satisfies(antdVersion, "^4.0.0");
|
|
63
64
|
const appComponentAvailable = import_plugin_utils.semver.gte(antdVersion, "5.1.0");
|
|
64
65
|
const appConfigAvailable = import_plugin_utils.semver.gte(antdVersion, "5.3.0");
|
|
@@ -374,7 +375,9 @@ export const AntdConfigContextSetter = React.createContext<React.Dispatch<React.
|
|
|
374
375
|
const style = api.config.antd.style || "less";
|
|
375
376
|
const imports = [];
|
|
376
377
|
if (isModern) {
|
|
377
|
-
|
|
378
|
+
if (!isV6) {
|
|
379
|
+
imports.push({ source: "antd/dist/reset.css" });
|
|
380
|
+
}
|
|
378
381
|
} else if (!api.config.antd.import || api.appData.vite) {
|
|
379
382
|
imports.push({
|
|
380
383
|
source: style === "less" ? "antd/dist/antd.less" : "antd/dist/antd.css"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/plugins",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.83",
|
|
4
4
|
"description": "@umijs/plugins",
|
|
5
5
|
"homepage": "https://github.com/umijs/umi/tree/master/packages/plugins#readme",
|
|
6
6
|
"bugs": "https://github.com/umijs/umi/issues",
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
"styled-components": "6.1.1",
|
|
48
48
|
"tslib": "^2",
|
|
49
49
|
"warning": "^4.0.3",
|
|
50
|
-
"@umijs/bundler-utils": "4.6.
|
|
50
|
+
"@umijs/bundler-utils": "4.6.83",
|
|
51
51
|
"@umijs/valtio": "1.0.4"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"antd": "^4.24.1",
|
|
55
|
-
"umi": "4.6.
|
|
55
|
+
"umi": "4.6.83"
|
|
56
56
|
},
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|