Skip to content

Commit

Permalink
feat: Use modern babel config, removing transforms for ancient browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
bradenmacdonald committed Nov 13, 2024
1 parent fc888d5 commit f0cb655
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
17 changes: 8 additions & 9 deletions babel.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,23 @@
[
"@babel/preset-env",
{
"modules": false
"modules": false,
"targets": "defaults"
}
],
"@babel/preset-react",
["@babel/preset-react", { "useSpread": true } ],
"@babel/preset-typescript"
],
"plugins": [
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-proposal-class-properties"
],
"env": {
"test": {
"plugins": ["@babel/plugin-proposal-class-properties"],
"presets": [
[
"@babel/preset-env"
"@babel/preset-env",
{
"targets": "defaults"
}
],
"@babel/preset-react",
["@babel/preset-react", { "useSpread": true } ],
"@babel/preset-typescript"
]
}
Expand Down
2 changes: 0 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@
"@babel/cli": "^7.16.8",
"@babel/core": "^7.17.8",
"@babel/eslint-parser": "^7.18.2",
"@babel/plugin-proposal-class-properties": "^7.16.7",
"@babel/plugin-proposal-object-rest-spread": "^7.16.7",
"@babel/preset-env": "^7.16.8",
"@babel/preset-react": "^7.16.7",
"@babel/preset-typescript": "^7.16.7",
Expand Down

0 comments on commit f0cb655

Please sign in to comment.