@umijs/babel-preset-umi 4.0.0-beta.6 → 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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +17 -17
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
- absoluteRuntime: (0, path_1.dirname)(require.resolve('@babel/runtime/package.json')), version: `^${require('@babel/runtime/package.json').version}` }, opts.pluginTransformRuntime),
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,7 +1,14 @@
1
1
  {
2
2
  "name": "@umijs/babel-preset-umi",
3
- "version": "4.0.0-beta.6",
3
+ "version": "4.0.0-rc.1",
4
4
  "description": "Official babel preset for umi.",
5
+ "homepage": "https://github.com/umijs/umi-next/tree/master/packages/babel-preset-umi#readme",
6
+ "bugs": "https://github.com/umijs/umi-next/issues",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/umijs/umi-next"
10
+ },
11
+ "license": "MIT",
5
12
  "main": "dist/index.js",
6
13
  "types": "dist/index.d.ts",
7
14
  "files": [
@@ -12,24 +19,17 @@
12
19
  "build:deps": "pnpm esno ../../scripts/bundleDeps.ts",
13
20
  "dev": "pnpm build -- --watch"
14
21
  },
15
- "repository": {
16
- "type": "git",
17
- "url": "https://github.com/umijs/umi-next"
22
+ "dependencies": {
23
+ "@babel/runtime": "7.16.3",
24
+ "@bloomberg/record-tuple-polyfill": "0.0.4",
25
+ "@umijs/bundler-utils": "4.0.0-rc.1",
26
+ "@umijs/utils": "4.0.0-rc.1",
27
+ "core-js": "3.19.2"
18
28
  },
19
- "authors": [
20
- "chencheng <sorrycc@gmail.com> (https://github.com/sorrycc)"
21
- ],
22
- "license": "MIT",
23
- "bugs": "https://github.com/umijs/umi-next/issues",
24
- "homepage": "https://github.com/umijs/umi-next/tree/master/packages/babel-preset-umi#readme",
25
29
  "publishConfig": {
26
30
  "access": "public"
27
31
  },
28
- "dependencies": {
29
- "@babel/runtime": "7.16.0",
30
- "@bloomberg/record-tuple-polyfill": "0.0.4",
31
- "@umijs/bundler-utils": "4.0.0-beta.6",
32
- "@umijs/utils": "4.0.0-beta.6",
33
- "core-js": "3.19.0"
34
- }
32
+ "authors": [
33
+ "chencheng <sorrycc@gmail.com> (https://github.com/sorrycc)"
34
+ ]
35
35
  }