From 42f5c044395521afc3bd7a3fb1831f726ef0713e Mon Sep 17 00:00:00 2001 From: Dominic Saadi Date: Thu, 6 Jul 2023 01:26:45 -0700 Subject: [PATCH] chore: use renamed babel plugin packages (#8832) --- babel.config.js | 8 +++--- package.json | 8 +++--- packages/internal/package.json | 6 ++--- packages/internal/src/build/babel/api.ts | 4 +-- packages/internal/src/build/babel/common.ts | 6 ++--- packages/internal/src/build/babel/web.ts | 4 +-- yarn.lock | 30 ++++++++++----------- 7 files changed, 33 insertions(+), 33 deletions(-) diff --git a/babel.config.js b/babel.config.js index 1824bb943754..d42384898c2a 100644 --- a/babel.config.js +++ b/babel.config.js @@ -88,9 +88,9 @@ module.exports = { **/ ['@babel/plugin-proposal-decorators', { legacy: true }], // The "loose" option must be the same for all three of these plugins. - ['@babel/plugin-proposal-class-properties', { loose: true }], - ['@babel/plugin-proposal-private-methods', { loose: true }], - ['@babel/plugin-proposal-private-property-in-object', { loose: true }], + ['@babel/plugin-transform-class-properties', { loose: true }], + ['@babel/plugin-transform-private-methods', { loose: true }], + ['@babel/plugin-transform-private-property-in-object', { loose: true }], [ '@babel/plugin-transform-runtime', { @@ -144,7 +144,7 @@ module.exports = { // normally provided through preset-env detecting TARGET_BROWSER // but webpack 4 has an issue with this // see https://github.com/PaulLeCam/react-leaflet/issues/883 - ['@babel/plugin-proposal-nullish-coalescing-operator'], + ['@babel/plugin-transform-nullish-coalescing-operator'], ], }, ], diff --git a/package.json b/package.json index ce6fd5627e16..cf05c4d45ac1 100644 --- a/package.json +++ b/package.json @@ -43,11 +43,11 @@ "@babel/core": "7.22.5", "@babel/generator": "7.22.5", "@babel/node": "7.22.5", - "@babel/plugin-proposal-class-properties": "7.18.6", "@babel/plugin-proposal-decorators": "7.22.5", - "@babel/plugin-proposal-nullish-coalescing-operator": "7.18.6", - "@babel/plugin-proposal-private-methods": "7.18.6", - "@babel/plugin-proposal-private-property-in-object": "7.21.11", + "@babel/plugin-transform-class-properties": "7.22.5", + "@babel/plugin-transform-nullish-coalescing-operator": "7.22.5", + "@babel/plugin-transform-private-methods": "7.22.5", + "@babel/plugin-transform-private-property-in-object": "7.22.5", "@babel/plugin-transform-runtime": "7.22.5", "@babel/preset-env": "7.22.5", "@babel/preset-react": "7.22.5", diff --git a/packages/internal/package.json b/packages/internal/package.json index e2d76d0327b8..0da9683066e5 100644 --- a/packages/internal/package.json +++ b/packages/internal/package.json @@ -29,9 +29,9 @@ }, "dependencies": { "@babel/parser": "7.22.5", - "@babel/plugin-proposal-class-properties": "7.18.6", - "@babel/plugin-proposal-private-methods": "7.18.6", - "@babel/plugin-proposal-private-property-in-object": "7.21.11", + "@babel/plugin-transform-class-properties": "7.22.5", + "@babel/plugin-transform-private-methods": "7.22.5", + "@babel/plugin-transform-private-property-in-object": "7.22.5", "@babel/plugin-transform-typescript": "7.22.5", "@babel/register": "7.22.5", "@babel/runtime-corejs3": "7.22.5", diff --git a/packages/internal/src/build/babel/api.ts b/packages/internal/src/build/babel/api.ts index ea0ddb8c7119..1db5a6beed86 100644 --- a/packages/internal/src/build/babel/api.ts +++ b/packages/internal/src/build/babel/api.ts @@ -45,8 +45,8 @@ export const getApiSideBabelPresets = ( exclude: [ // Remove class-properties from preset-env, and include separately with loose // https://github.com/webpack/webpack/issues/9708 - '@babel/plugin-proposal-class-properties', - '@babel/plugin-proposal-private-methods', + '@babel/plugin-transform-class-properties', + '@babel/plugin-transform-private-methods', ], }, ], diff --git a/packages/internal/src/build/babel/common.ts b/packages/internal/src/build/babel/common.ts index 777612b3fc9d..1e052288b007 100644 --- a/packages/internal/src/build/babel/common.ts +++ b/packages/internal/src/build/babel/common.ts @@ -62,12 +62,12 @@ if (!RUNTIME_CORE_JS_VERSION) { export const getCommonPlugins = () => { return [ - ['@babel/plugin-proposal-class-properties', { loose: true }], + ['@babel/plugin-transform-class-properties', { loose: true }], // Note: The private method loose mode configuration setting must be the // same as @babel/plugin-proposal class-properties. // (https://babeljs.io/docs/en/babel-plugin-proposal-private-methods#loose) - ['@babel/plugin-proposal-private-methods', { loose: true }], - ['@babel/plugin-proposal-private-property-in-object', { loose: true }], + ['@babel/plugin-transform-private-methods', { loose: true }], + ['@babel/plugin-transform-private-property-in-object', { loose: true }], ] } diff --git a/packages/internal/src/build/babel/web.ts b/packages/internal/src/build/babel/web.ts index 5048be2a8db3..73edf3a91800 100644 --- a/packages/internal/src/build/babel/web.ts +++ b/packages/internal/src/build/babel/web.ts @@ -168,8 +168,8 @@ export const getWebSideBabelPresets = (options: Flags) => { exclude: [ // Remove class-properties from preset-env, and include separately // https://github.com/webpack/webpack/issues/9708 - '@babel/plugin-proposal-class-properties', - '@babel/plugin-proposal-private-methods', + '@babel/plugin-transform-class-properties', + '@babel/plugin-transform-private-methods', ], }, 'rwjs-babel-preset-env', diff --git a/yarn.lock b/yarn.lock index bde9914e3cc3..d6526fd16f15 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1047,7 +1047,7 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-proposal-class-properties@npm:7.18.6, @babel/plugin-proposal-class-properties@npm:^7.0.0, @babel/plugin-proposal-class-properties@npm:^7.13.0, @babel/plugin-proposal-class-properties@npm:^7.18.6": +"@babel/plugin-proposal-class-properties@npm:^7.0.0, @babel/plugin-proposal-class-properties@npm:^7.13.0, @babel/plugin-proposal-class-properties@npm:^7.18.6": version: 7.18.6 resolution: "@babel/plugin-proposal-class-properties@npm:7.18.6" dependencies: @@ -1135,7 +1135,7 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-proposal-nullish-coalescing-operator@npm:7.18.6, @babel/plugin-proposal-nullish-coalescing-operator@npm:^7.13.8, @babel/plugin-proposal-nullish-coalescing-operator@npm:^7.18.6": +"@babel/plugin-proposal-nullish-coalescing-operator@npm:^7.13.8, @babel/plugin-proposal-nullish-coalescing-operator@npm:^7.18.6": version: 7.18.6 resolution: "@babel/plugin-proposal-nullish-coalescing-operator@npm:7.18.6" dependencies: @@ -1199,7 +1199,7 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-proposal-private-methods@npm:7.18.6, @babel/plugin-proposal-private-methods@npm:^7.18.6": +"@babel/plugin-proposal-private-methods@npm:^7.18.6": version: 7.18.6 resolution: "@babel/plugin-proposal-private-methods@npm:7.18.6" dependencies: @@ -1220,7 +1220,7 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-proposal-private-property-in-object@npm:7.21.11, @babel/plugin-proposal-private-property-in-object@npm:^7.21.0": +"@babel/plugin-proposal-private-property-in-object@npm:^7.21.0": version: 7.21.11 resolution: "@babel/plugin-proposal-private-property-in-object@npm:7.21.11" dependencies: @@ -1560,7 +1560,7 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-class-properties@npm:^7.22.5": +"@babel/plugin-transform-class-properties@npm:7.22.5, @babel/plugin-transform-class-properties@npm:^7.22.5": version: 7.22.5 resolution: "@babel/plugin-transform-class-properties@npm:7.22.5" dependencies: @@ -1842,7 +1842,7 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-nullish-coalescing-operator@npm:^7.22.5": +"@babel/plugin-transform-nullish-coalescing-operator@npm:7.22.5, @babel/plugin-transform-nullish-coalescing-operator@npm:^7.22.5": version: 7.22.5 resolution: "@babel/plugin-transform-nullish-coalescing-operator@npm:7.22.5" dependencies: @@ -1929,7 +1929,7 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-private-methods@npm:^7.22.5": +"@babel/plugin-transform-private-methods@npm:7.22.5, @babel/plugin-transform-private-methods@npm:^7.22.5": version: 7.22.5 resolution: "@babel/plugin-transform-private-methods@npm:7.22.5" dependencies: @@ -1941,7 +1941,7 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-private-property-in-object@npm:^7.22.5": +"@babel/plugin-transform-private-property-in-object@npm:7.22.5, @babel/plugin-transform-private-property-in-object@npm:^7.22.5": version: 7.22.5 resolution: "@babel/plugin-transform-private-property-in-object@npm:7.22.5" dependencies: @@ -7805,9 +7805,9 @@ __metadata: "@babel/cli": 7.22.5 "@babel/core": 7.22.5 "@babel/parser": 7.22.5 - "@babel/plugin-proposal-class-properties": 7.18.6 - "@babel/plugin-proposal-private-methods": 7.18.6 - "@babel/plugin-proposal-private-property-in-object": 7.21.11 + "@babel/plugin-transform-class-properties": 7.22.5 + "@babel/plugin-transform-private-methods": 7.22.5 + "@babel/plugin-transform-private-property-in-object": 7.22.5 "@babel/plugin-transform-typescript": 7.22.5 "@babel/register": 7.22.5 "@babel/runtime-corejs3": 7.22.5 @@ -27660,11 +27660,11 @@ __metadata: "@babel/core": 7.22.5 "@babel/generator": 7.22.5 "@babel/node": 7.22.5 - "@babel/plugin-proposal-class-properties": 7.18.6 "@babel/plugin-proposal-decorators": 7.22.5 - "@babel/plugin-proposal-nullish-coalescing-operator": 7.18.6 - "@babel/plugin-proposal-private-methods": 7.18.6 - "@babel/plugin-proposal-private-property-in-object": 7.21.11 + "@babel/plugin-transform-class-properties": 7.22.5 + "@babel/plugin-transform-nullish-coalescing-operator": 7.22.5 + "@babel/plugin-transform-private-methods": 7.22.5 + "@babel/plugin-transform-private-property-in-object": 7.22.5 "@babel/plugin-transform-runtime": 7.22.5 "@babel/preset-env": 7.22.5 "@babel/preset-react": 7.22.5