Skip to content

Commit

Permalink
chore: Extract babel config from package.json (#299)
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
sasjo authored Aug 7, 2024
1 parent 035c1a0 commit 30588f0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 21 deletions.
24 changes: 24 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = (api) => {
api.cache(true);
return {
env: {
test: {
plugins: [
'@babel/plugin-transform-runtime',
],
},
},
plugins: [
[
'@babel/plugin-transform-runtime',
{
regenerator: true,
},
],
],
presets: [
'@babel/preset-env',
'@babel/preset-react',
],
};
};
21 changes: 0 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,27 +78,6 @@
"webpack-dev-server": "^5.0.4",
"webpack-log": "^3.0.2"
},
"babel": {
"env": {
"test": {
"plugins": [
"@babel/plugin-transform-runtime"
]
}
},
"plugins": [
[
"@babel/plugin-transform-runtime",
{
"regenerator": true
}
]
],
"presets": [
"@babel/preset-env",
"@babel/preset-react"
]
},
"eslintConfig": {
"env": {
"es6": true,
Expand Down

0 comments on commit 30588f0

Please sign in to comment.