@umijs/babel-preset-umi 4.0.0-beta.9 → 4.0.0-rc.1
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 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -82,7 +82,9 @@ exports.default = (_context, opts) => {
|
|
|
82
82
|
useESModules: false,
|
|
83
83
|
// lock the version of @babel/runtime
|
|
84
84
|
// make sure we are using the correct version
|
|
85
|
-
|
|
85
|
+
// ref: https://github.com/babel/babel/blob/v7.16.12/packages/babel-plugin-transform-runtime/src/get-runtime-path/index.ts#L19
|
|
86
|
+
// ref: https://github.com/umijs/umi/pull/7816
|
|
87
|
+
absoluteRuntime: (0, path_1.dirname)(require.resolve('../package.json')), version: `^${require('@babel/runtime/package.json').version}` }, opts.pluginTransformRuntime),
|
|
86
88
|
],
|
|
87
89
|
// none official plugins
|
|
88
90
|
opts.pluginLockCoreJS && [lockCoreJS_1.default],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/babel-preset-umi",
|
|
3
|
-
"version": "4.0.0-
|
|
3
|
+
"version": "4.0.0-rc.1",
|
|
4
4
|
"description": "Official babel preset for umi.",
|
|
5
5
|
"homepage": "https://github.com/umijs/umi-next/tree/master/packages/babel-preset-umi#readme",
|
|
6
6
|
"bugs": "https://github.com/umijs/umi-next/issues",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"dev": "pnpm build -- --watch"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@babel/runtime": "7.16.
|
|
23
|
+
"@babel/runtime": "7.16.3",
|
|
24
24
|
"@bloomberg/record-tuple-polyfill": "0.0.4",
|
|
25
|
-
"@umijs/bundler-utils": "4.0.0-
|
|
26
|
-
"@umijs/utils": "4.0.0-
|
|
27
|
-
"core-js": "3.19.
|
|
25
|
+
"@umijs/bundler-utils": "4.0.0-rc.1",
|
|
26
|
+
"@umijs/utils": "4.0.0-rc.1",
|
|
27
|
+
"core-js": "3.19.2"
|
|
28
28
|
},
|
|
29
29
|
"publishConfig": {
|
|
30
30
|
"access": "public"
|