58 lines
991 B
JSON
58 lines
991 B
JSON
{
|
|
"presets": [
|
|
"@babel/preset-typescript"
|
|
],
|
|
"plugins": [
|
|
["@babel/plugin-proposal-optional-chaining", { "loose": false }]
|
|
],
|
|
"env": {
|
|
"production": {
|
|
"presets": [
|
|
[
|
|
"@babel/preset-env",
|
|
{
|
|
"useBuiltIns": false,
|
|
"loose": true
|
|
}
|
|
]
|
|
],
|
|
"plugins": [
|
|
[
|
|
"@babel/plugin-transform-runtime",
|
|
{
|
|
"helpers": true,
|
|
"regenerator": true
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"development": {
|
|
"presets": [
|
|
[
|
|
"@babel/preset-env",
|
|
{
|
|
"targets": {
|
|
"esmodules": true
|
|
}
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"test": {
|
|
"presets": [
|
|
[
|
|
"@babel/preset-env",
|
|
{
|
|
"targets": {
|
|
"node": "current"
|
|
}
|
|
}
|
|
]
|
|
],
|
|
"plugins": [
|
|
"babel-plugin-dynamic-import-node"
|
|
]
|
|
}
|
|
}
|
|
}
|