mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
Update @babel/preset-modules and polyfill packages (#18081)
* Use stable babel 8 * Update `@babel/preset-modules` * Do not use `useBuiltIns` * Update polyfill packages
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
approvedGitRepositories:
|
||||
|
||||
catalog:
|
||||
babel-plugin-polyfill-corejs3: ^1.0.0-rc.2
|
||||
babel-plugin-polyfill-corejs3: ^1.0.0
|
||||
core-js: ^3.48.0
|
||||
core-js-compat: ^3.48.0
|
||||
semver: ^7.7.3
|
||||
|
||||
+8
-8
File diff suppressed because one or more lines are too long
+11
-11
@@ -22,20 +22,20 @@
|
||||
"devDependencies": {
|
||||
"$repo-utils": "link:./scripts/repo-utils",
|
||||
"@actions/github": "9.1.1",
|
||||
"@babel/cli": "8.0.0-rc.6",
|
||||
"@babel/core": "8.0.0-rc.6",
|
||||
"@babel/cli": "^8.0.1",
|
||||
"@babel/core": "^8.0.1",
|
||||
"@babel/eslint-parser": "workspace:^",
|
||||
"@babel/eslint-plugin-development": "workspace:^",
|
||||
"@babel/eslint-plugin-development-internal": "workspace:^",
|
||||
"@babel/plugin-transform-dynamic-import": "8.0.0-rc.6",
|
||||
"@babel/plugin-transform-export-namespace-from": "8.0.0-rc.6",
|
||||
"@babel/plugin-transform-json-modules": "8.0.0-rc.6",
|
||||
"@babel/plugin-transform-modules-commonjs": "8.0.0-rc.6",
|
||||
"@babel/plugin-transform-object-rest-spread": "8.0.0-rc.6",
|
||||
"@babel/plugin-transform-runtime": "8.0.0-rc.6",
|
||||
"@babel/preset-env": "8.0.0-rc.6",
|
||||
"@babel/preset-typescript": "8.0.0-rc.6",
|
||||
"@babel/runtime": "8.0.0-rc.6",
|
||||
"@babel/plugin-transform-dynamic-import": "^8.0.1",
|
||||
"@babel/plugin-transform-export-namespace-from": "^8.0.1",
|
||||
"@babel/plugin-transform-json-modules": "^8.0.1",
|
||||
"@babel/plugin-transform-modules-commonjs": "^8.0.1",
|
||||
"@babel/plugin-transform-object-rest-spread": "^8.0.1",
|
||||
"@babel/plugin-transform-runtime": "^8.0.1",
|
||||
"@babel/preset-env": "^8.0.1",
|
||||
"@babel/preset-typescript": "^8.0.1",
|
||||
"@babel/runtime": "^8.0.0",
|
||||
"@cspotcode/source-map-support": "^0.8.1",
|
||||
"@eslint/js": "^10.0.1",
|
||||
"@rollup/plugin-babel": "^7.0.0",
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
"@babel/helper-plugin-test-runner": "workspace:^",
|
||||
"@babel/traverse": "workspace:^",
|
||||
"array.prototype.concat": "^1.0.2",
|
||||
"babel-plugin-polyfill-es-shims": "^1.0.0-rc.2",
|
||||
"babel-plugin-polyfill-es-shims": "^1.0.0",
|
||||
"object.getownpropertydescriptors": "^2.1.1"
|
||||
},
|
||||
"engines": {
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
"@babel/plugin-transform-modules-commonjs": "workspace:^",
|
||||
"@babel/plugin-transform-parameters": "workspace:^",
|
||||
"@babel/plugin-transform-runtime": "workspace:^",
|
||||
"babel-plugin-polyfill-regenerator": "^1.0.0-rc.2",
|
||||
"babel-plugin-polyfill-regenerator": "^1.0.0",
|
||||
"jest": "^30.4.2",
|
||||
"recast": "^0.23.3",
|
||||
"uglify-js": "^3.14.0"
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
"@babel/plugin-transform-unicode-property-regex": "workspace:^",
|
||||
"@babel/plugin-transform-unicode-regex": "workspace:^",
|
||||
"@babel/plugin-transform-unicode-sets-regex": "workspace:^",
|
||||
"@babel/preset-modules": "0.1.6-no-external-plugins",
|
||||
"@babel/preset-modules": "^0.2.0",
|
||||
"babel-plugin-polyfill-corejs3": "catalog:",
|
||||
"core-js-compat": "catalog:",
|
||||
"semver": "catalog:"
|
||||
|
||||
@@ -49,12 +49,12 @@ async function pack(
|
||||
babelHelpers: "bundled",
|
||||
exclude: ["node_modules/core-js/**"],
|
||||
parserOpts: { sourceType: "module" },
|
||||
presets: [
|
||||
"@babel/preset-typescript",
|
||||
presets: ["@babel/preset-typescript", "@babel/preset-env"],
|
||||
plugins: [
|
||||
[
|
||||
"@babel/preset-env",
|
||||
"babel-plugin-polyfill-corejs3",
|
||||
{
|
||||
useBuiltIns: "usage",
|
||||
method: "usage-global",
|
||||
corejs: require("core-js/package.json").version,
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user