2021-02-26 05:28:19 +01:00
|
|
|
{
|
|
|
|
"presets": [
|
|
|
|
[
|
|
|
|
"@babel/preset-env",
|
|
|
|
{
|
|
|
|
"targets": {
|
2024-06-23 01:37:22 +02:00
|
|
|
"browsers": [
|
|
|
|
"last 2 version",
|
|
|
|
"ie > 11"
|
|
|
|
]
|
2021-02-26 05:28:19 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"@babel/preset-react",
|
|
|
|
{
|
|
|
|
"pragma": "dom", // default pragma is React.createElement (only in classic runtime)
|
|
|
|
"pragmaFrag": "DomFrag", // default is React.Fragment (only in classic runtime)
|
|
|
|
"throwIfNamespace": false, // defaults to true
|
|
|
|
"runtime": "classic" // defaults to classic
|
|
|
|
// "importSource": "custom-jsx-library" // defaults to react (only in automatic runtime)
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"plugins": [
|
|
|
|
"@babel/plugin-syntax-top-level-await",
|
|
|
|
"@babel/plugin-proposal-object-rest-spread",
|
|
|
|
"@babel/plugin-syntax-jsx"
|
|
|
|
]
|
|
|
|
}
|