From 115fc88f5276e5db60b78b45aa9ebc6f3dd6b843 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Sun, 7 Jun 2026 11:04:09 -0700 Subject: [PATCH] Remove unused Babel proposal plugins MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These plugins handled class properties, optional chaining, nullish coalescing, object rest spread, and dynamic import syntax — all of which are natively supported by our target browsers. Bundle size is unchanged, confirming they were no-ops. Co-Authored-By: Claude Opus 4.6 --- packages/webamp/.babelrc | 12 ++---------- packages/webamp/package.json | 7 +------ 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/packages/webamp/.babelrc b/packages/webamp/.babelrc index fb3837a8..4b5c83f4 100644 --- a/packages/webamp/.babelrc +++ b/packages/webamp/.babelrc @@ -21,23 +21,15 @@ // TODO: Can TypeScript just do this for us? "@babel/preset-typescript" ], - "plugins": [ - "@babel/plugin-proposal-nullish-coalescing-operator", - "@babel/plugin-proposal-optional-chaining", - "@babel/plugin-proposal-class-properties" - ], + "plugins": [], "env": { "test": { "plugins": [ - "@babel/plugin-transform-modules-commonjs", - "@babel/plugin-syntax-dynamic-import" + "@babel/plugin-transform-modules-commonjs" ] }, "library": { "plugins": ["@babel/plugin-transform-runtime"] - }, - "production": { - "plugins": ["@babel/plugin-syntax-dynamic-import"] } } } diff --git a/packages/webamp/package.json b/packages/webamp/package.json index 0f251121..385c1d1a 100644 --- a/packages/webamp/package.json +++ b/packages/webamp/package.json @@ -74,11 +74,6 @@ "devDependencies": { "ani-cursor": "workspace:*", "winamp-eqf": "workspace:*", - "@babel/plugin-proposal-class-properties": "^7.18.6", - "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6", - "@babel/plugin-proposal-object-rest-spread": "^7.20.7", - "@babel/plugin-proposal-optional-chaining": "^7.21.0", - "@babel/plugin-syntax-dynamic-import": "^7.8.3", "@babel/preset-env": "^7.25.0", "@rollup/plugin-babel": "^6.0.4", "@rollup/plugin-commonjs": "^25.0.8", @@ -154,6 +149,6 @@ "redux-thunk": "^2.4.0", "reselect": "^3.0.1", "strtok3": "^10.3.1", - "tinyqueue": "^1.2.3", + "tinyqueue": "^1.2.3" } }