Skip to content

Commit

Permalink
chore: add babel cfg to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
wdoconnell committed Jul 29, 2024
1 parent f6f343f commit 2279950
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
10 changes: 10 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -225,5 +225,15 @@
},
"resolutions": {
"minimatch": "^3.0.5"
},
"babel": {
"presets": [
[
"@babel/preset-env",
{
"useBuiltIns": "usage"
}
]
]
}
}
7 changes: 6 additions & 1 deletion webpack.common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,12 @@ module.exports = {
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env', {useBuiltIns: 'usage'}],
presets: [
'@babel/preset-env',
{
useBuiltIns: 'usage',
},
],
plugins: ['@babel/plugin-transform-runtime'],
},
},
Expand Down

0 comments on commit 2279950

Please sign in to comment.