Skip to content

Commit 1b88862

Browse files
[core] Remove outdated Babel plugins (#42140)
1 parent 393f744 commit 1b88862

File tree

3 files changed

+13
-70
lines changed

3 files changed

+13
-70
lines changed

babel.config.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,6 @@ module.exports = function getBabelConfig(api) {
6767
},
6868
],
6969
'babel-plugin-optimize-clsx',
70-
// Need the following 3 proposals for all targets in .browserslistrc.
71-
// With our usage the transpiled loose mode is equivalent to spec mode.
72-
['@babel/plugin-proposal-class-properties', { loose: true }],
73-
['@babel/plugin-proposal-private-methods', { loose: true }],
74-
['@babel/plugin-proposal-private-property-in-object', { loose: true }],
75-
['@babel/plugin-proposal-object-rest-spread', { loose: true }],
7670
[
7771
'@babel/plugin-transform-runtime',
7872
{

package.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,6 @@
9191
"@babel/cli": "^7.24.5",
9292
"@babel/core": "^7.24.5",
9393
"@babel/node": "^7.23.9",
94-
"@babel/plugin-proposal-class-properties": "^7.18.6",
95-
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
96-
"@babel/plugin-proposal-private-methods": "^7.18.6",
97-
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
9894
"@babel/plugin-transform-react-constant-elements": "^7.24.1",
9995
"@babel/plugin-transform-runtime": "^7.24.3",
10096
"@babel/preset-env": "^7.24.5",
@@ -192,12 +188,6 @@
192188
"resolutions": {
193189
"@babel/core": "^7.24.5",
194190
"@babel/code-frame": "^7.24.2",
195-
"@babel/plugin-proposal-class-properties": "^7.18.6",
196-
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
197-
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
198-
"@babel/plugin-proposal-numeric-separator": "^7.18.6",
199-
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
200-
"@babel/plugin-transform-destructuring": "npm:@minh.nguyen/plugin-transform-destructuring@^7.5.2",
201191
"@babel/plugin-transform-runtime": "^7.24.3",
202192
"@babel/preset-env": "^7.24.5",
203193
"@babel/preset-react": "^7.24.1",

pnpm-lock.yaml

Lines changed: 13 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)