@umijs/babel-preset-umi 4.0.84 → 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/index.js +3 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -87,6 +87,9 @@ var src_default = (_context, opts) => {
|
|
|
87
87
|
opts.pluginStyledComponents && [
|
|
88
88
|
require.resolve("babel-plugin-styled-components"),
|
|
89
89
|
{
|
|
90
|
+
// 该 plugin 会校验 styled 的来源
|
|
91
|
+
// 如果不是 `styled-components`, 需要手动引入后才能使 displayName 生效
|
|
92
|
+
topLevelImportPaths: ["@umijs/max"],
|
|
90
93
|
...opts.pluginStyledComponents
|
|
91
94
|
}
|
|
92
95
|
],
|
|
@@ -189,5 +192,3 @@ var src_default = (_context, opts) => {
|
|
|
189
192
|
].filter(Boolean)
|
|
190
193
|
};
|
|
191
194
|
};
|
|
192
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
193
|
-
0 && (module.exports = {});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/babel-preset-umi",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.85",
|
|
4
4
|
"description": "Official babel preset for umi.",
|
|
5
5
|
"homepage": "https://github.com/umijs/umi/tree/master/packages/babel-preset-umi#readme",
|
|
6
6
|
"bugs": "https://github.com/umijs/umi/issues",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"@bloomberg/record-tuple-polyfill": "0.0.4",
|
|
20
20
|
"babel-plugin-styled-components": "2.1.1",
|
|
21
21
|
"core-js": "3.28.0",
|
|
22
|
-
"@umijs/
|
|
23
|
-
"@umijs/utils": "4.0.
|
|
22
|
+
"@umijs/utils": "4.0.85",
|
|
23
|
+
"@umijs/bundler-utils": "4.0.85"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|