@umijs/babel-preset-umi 4.0.65 → 4.0.67
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.d.ts +1 -1
- package/dist/index.js +3 -2
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -60,7 +60,8 @@ var src_default = (_context, opts) => {
|
|
|
60
60
|
...opts.presetEnv
|
|
61
61
|
}
|
|
62
62
|
],
|
|
63
|
-
|
|
63
|
+
// 允许禁用 preset-react 用于支持 vue 等其他框架
|
|
64
|
+
opts.presetReact !== false && [
|
|
64
65
|
require.resolve("@umijs/bundler-utils/compiled/babel/preset-react"),
|
|
65
66
|
{
|
|
66
67
|
runtime: "automatic",
|
|
@@ -81,7 +82,7 @@ var src_default = (_context, opts) => {
|
|
|
81
82
|
...opts.presetTypeScript
|
|
82
83
|
}
|
|
83
84
|
]
|
|
84
|
-
],
|
|
85
|
+
].filter(Boolean),
|
|
85
86
|
plugins: [
|
|
86
87
|
opts.pluginStyledComponents && [
|
|
87
88
|
require.resolve("babel-plugin-styled-components"),
|
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.67",
|
|
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.0.7",
|
|
21
21
|
"core-js": "3.28.0",
|
|
22
|
-
"@umijs/bundler-utils": "4.0.
|
|
23
|
-
"@umijs/utils": "4.0.
|
|
22
|
+
"@umijs/bundler-utils": "4.0.67",
|
|
23
|
+
"@umijs/utils": "4.0.67"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|