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:
committed by
Michael Vines
parent
8efc577374
commit
ebbb237844
@ -1,9 +1,14 @@
|
|||||||
{
|
{
|
||||||
"presets": [
|
"presets": [
|
||||||
["@babel/preset-env"],
|
[
|
||||||
|
"@babel/preset-env",
|
||||||
|
{
|
||||||
|
"bugfixes": true
|
||||||
|
}
|
||||||
|
],
|
||||||
["@babel/preset-typescript"]
|
["@babel/preset-typescript"]
|
||||||
],
|
],
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"@babel/plugin-proposal-class-properties"
|
"@babel/plugin-proposal-class-properties"
|
||||||
]
|
]
|
||||||
}
|
}
|
Reference in New Issue
Block a user