From 1e1e94e7ebdcab2856d3a7594675ad827072c576 Mon Sep 17 00:00:00 2001 From: James Parslow Date: Wed, 20 Nov 2024 17:00:09 +0000 Subject: [PATCH] build: remove redundant babel plugins included by default This change simplifies our babel configuration without changing the compiled build. --- babel.config.js | 2 -- package-lock.json | 19 ------------------- package.json | 2 -- 3 files changed, 23 deletions(-) diff --git a/babel.config.js b/babel.config.js index 502c2f6f25..d6d64168d3 100644 --- a/babel.config.js +++ b/babel.config.js @@ -25,8 +25,6 @@ module.exports = (api) => { !inStorybookBuild && inProduction && "./plugins/generate-proptypes/index.mjs", - "@babel/plugin-proposal-class-properties", - "@babel/plugin-transform-classes", "babel-plugin-dev-expression", ].filter(Boolean), }; diff --git a/package-lock.json b/package-lock.json index 89bd2a38e6..a6c71ff137 100644 --- a/package-lock.json +++ b/package-lock.json @@ -38,8 +38,6 @@ "@babel/cli": "^7.23.4", "@babel/core": "^7.23.3", "@babel/eslint-parser": "^7.23.3", - "@babel/plugin-proposal-class-properties": "^7.18.6", - "@babel/plugin-transform-classes": "^7.23.3", "@babel/preset-env": "^7.23.3", "@babel/preset-react": "^7.23.3", "@babel/preset-typescript": "^7.23.3", @@ -804,23 +802,6 @@ "@babel/core": "^7.0.0" } }, - "node_modules/@babel/plugin-proposal-class-properties": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz", - "integrity": "sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==", - "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.", - "dev": true, - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, "node_modules/@babel/plugin-proposal-private-property-in-object": { "version": "7.21.0-placeholder-for-preset-env.2", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", diff --git a/package.json b/package.json index 98e40573c4..8544a717bb 100644 --- a/package.json +++ b/package.json @@ -60,8 +60,6 @@ "@babel/cli": "^7.23.4", "@babel/core": "^7.23.3", "@babel/eslint-parser": "^7.23.3", - "@babel/plugin-proposal-class-properties": "^7.18.6", - "@babel/plugin-transform-classes": "^7.23.3", "@babel/preset-env": "^7.23.3", "@babel/preset-react": "^7.23.3", "@babel/preset-typescript": "^7.23.3",