Skip to content

Commit c141ba1

Browse files
kkocdkoZeeshanTamboli
authored andcommitted
[core] Remove outdated babel proposal plugins (mui#36795)
Co-authored-by: ZeeshanTamboli <zeeshan.tamboli@gmail.com>
1 parent 331d93e commit c141ba1

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

babel.config.js

-6
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,6 @@ module.exports = function getBabelConfig(api) {
6262
},
6363
],
6464
'babel-plugin-optimize-clsx',
65-
// Need the following 3 proposals for all targets in .browserslistrc.
66-
// With our usage the transpiled loose mode is equivalent to spec mode.
67-
['@babel/plugin-proposal-class-properties', { loose: true }],
68-
['@babel/plugin-proposal-private-methods', { loose: true }],
69-
['@babel/plugin-proposal-private-property-in-object', { loose: true }],
70-
['@babel/plugin-proposal-object-rest-spread', { loose: true }],
7165
[
7266
'@babel/plugin-transform-runtime',
7367
{

package.json

-7
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@
7676
"@babel/cli": "^7.21.0",
7777
"@babel/core": "^7.21.4",
7878
"@babel/node": "^7.20.7",
79-
"@babel/plugin-proposal-class-properties": "^7.18.6",
80-
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
8179
"@babel/plugin-transform-object-assign": "^7.18.6",
8280
"@babel/plugin-transform-react-constant-elements": "^7.21.3",
8381
"@babel/plugin-transform-runtime": "^7.21.4",
@@ -210,11 +208,6 @@
210208
"resolutions": {
211209
"**/@babel/core": "^7.21.4",
212210
"**/@babel/code-frame": "^7.21.4",
213-
"**/@babel/plugin-proposal-class-properties": "^7.18.6",
214-
"**/@babel/plugin-proposal-object-rest-spread": "^7.20.7",
215-
"**/@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
216-
"**/@babel/plugin-proposal-numeric-separator": "^7.18.6",
217-
"**/@babel/plugin-proposal-optional-chaining": "^7.21.0",
218211
"**/@babel/plugin-transform-destructuring": "npm:@minh.nguyen/plugin-transform-destructuring@^7.5.2",
219212
"**/@babel/plugin-transform-runtime": "^7.21.4",
220213
"**/@babel/preset-env": "^7.21.4",

0 commit comments

Comments
 (0)