Migrate to merged proposals now included in babel/present-env

Bump core-js too.
This commit is contained in:
Bogdan 2023-09-03 23:49:13 +03:00 committed by Mark McDowall
parent 828b8e0fe4
commit 447d8cfbb9
3 changed files with 1337 additions and 1207 deletions

View File

@ -4,14 +4,14 @@ module.exports = {
plugins: [ plugins: [
// Stage 1 // Stage 1
'@babel/plugin-proposal-export-default-from', '@babel/plugin-proposal-export-default-from',
['@babel/plugin-proposal-optional-chaining', { loose }], ['@babel/plugin-transform-optional-chaining', { loose }],
['@babel/plugin-proposal-nullish-coalescing-operator', { loose }], ['@babel/plugin-transform-nullish-coalescing-operator', { loose }],
// Stage 2 // Stage 2
'@babel/plugin-proposal-export-namespace-from', '@babel/plugin-transform-export-namespace-from',
// Stage 3 // Stage 3
['@babel/plugin-proposal-class-properties', { loose }], ['@babel/plugin-transform-class-properties', { loose }],
'@babel/plugin-syntax-dynamic-import' '@babel/plugin-syntax-dynamic-import'
], ],
env: { env: {

View File

@ -85,17 +85,13 @@
"typescript": "4.9.5" "typescript": "4.9.5"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "7.21.8", "@babel/core": "7.22.11",
"@babel/eslint-parser": "7.21.8", "@babel/eslint-parser": "7.22.11",
"@babel/plugin-proposal-class-properties": "7.18.6", "@babel/plugin-proposal-export-default-from": "7.22.5",
"@babel/plugin-proposal-export-default-from": "7.18.10",
"@babel/plugin-proposal-export-namespace-from": "7.18.9",
"@babel/plugin-proposal-nullish-coalescing-operator": "7.18.6",
"@babel/plugin-proposal-optional-chaining": "7.21.0",
"@babel/plugin-syntax-dynamic-import": "7.8.3", "@babel/plugin-syntax-dynamic-import": "7.8.3",
"@babel/preset-env": "7.21.5", "@babel/preset-env": "7.22.14",
"@babel/preset-react": "7.18.6", "@babel/preset-react": "7.22.5",
"@babel/preset-typescript": "7.21.5", "@babel/preset-typescript": "7.22.11",
"@types/classnames": "2.3.1", "@types/classnames": "2.3.1",
"@types/lodash": "4.14.194", "@types/lodash": "4.14.194",
"@types/react-router-dom": "5.3.3", "@types/react-router-dom": "5.3.3",
@ -109,7 +105,7 @@
"babel-loader": "9.1.2", "babel-loader": "9.1.2",
"babel-plugin-inline-classnames": "2.0.1", "babel-plugin-inline-classnames": "2.0.1",
"babel-plugin-transform-react-remove-prop-types": "0.4.24", "babel-plugin-transform-react-remove-prop-types": "0.4.24",
"core-js": "3.30.2", "core-js": "3.32.1",
"css-loader": "6.7.3", "css-loader": "6.7.3",
"css-modules-typescript-loader": "4.0.1", "css-modules-typescript-loader": "4.0.1",
"eslint": "8.40.0", "eslint": "8.40.0",

2518
yarn.lock

File diff suppressed because it is too large Load Diff