fix(build): enable babel-preset-env "bugfixes" compilation

Allows Babel to compile syntax as close as possible to what's supported by the target browsers listed with Browserslist.
See https://babeljs.io/docs/en/babel-preset-env#bugfixes
This commit is contained in:
Crypto Sheik 2021-10-26 23:32:30 +02:00 committed by Michael Vines
parent 8efc577374
commit ebbb237844
1 changed files with 7 additions and 2 deletions

View File

@ -1,9 +1,14 @@
{
"presets": [
["@babel/preset-env"],
[
"@babel/preset-env",
{
"bugfixes": true
}
],
["@babel/preset-typescript"]
],
"plugins": [
"@babel/plugin-proposal-class-properties"
]
}
}