mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-17 16:46:04 +00:00
Remove unused Babel proposal plugins
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 <noreply@anthropic.com>
This commit is contained in:
parent
622f945646
commit
115fc88f52
2 changed files with 3 additions and 16 deletions
|
|
@ -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"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue