From 42af7fd7b79c3258ced1c9198c4f44008f47239b Mon Sep 17 00:00:00 2001 From: Justin Coyne Date: Mon, 28 Oct 2024 21:38:33 -0500 Subject: [PATCH] Remove babel proposal plugins Modern browsers have this built in --- babel.config.js | 14 -------------- package.json | 3 --- 2 files changed, 17 deletions(-) diff --git a/babel.config.js b/babel.config.js index eb0b0f586e..94f006cfcf 100644 --- a/babel.config.js +++ b/babel.config.js @@ -47,20 +47,6 @@ module.exports = function (api) { const plugins = [ 'babel-plugin-macros', '@babel/plugin-transform-destructuring', - [ - '@babel/plugin-proposal-class-properties', - { - loose: true, - }, - ], - ['@babel/plugin-proposal-private-property-in-object', { loose: true }], - ['@babel/plugin-proposal-private-methods', { loose: true }], - [ - '@babel/plugin-proposal-object-rest-spread', - { - useBuiltIns: true, - }, - ], [ '@babel/plugin-transform-runtime', { diff --git a/package.json b/package.json index 63bba22e81..1be3e70efc 100644 --- a/package.json +++ b/package.json @@ -83,9 +83,6 @@ "devDependencies": { "@babel/cli": "^7.17.6", "@babel/core": "^7.17.7", - "@babel/plugin-proposal-class-properties": "^7.16.7", - "@babel/plugin-proposal-object-rest-spread": "^7.17.3", - "@babel/plugin-proposal-private-property-in-object": "^7.21.11", "@babel/plugin-transform-regenerator": "^7.16.7", "@babel/plugin-transform-runtime": "^7.17.0", "@babel/preset-env": "^7.16.11",