You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.5 KiB
64 lines
1.5 KiB
{
|
|
"presets": [
|
|
[
|
|
"@babel/env",
|
|
{
|
|
"modules": false,
|
|
"targets": {
|
|
"browsers": [">0.25%"]
|
|
},
|
|
"useBuiltIns": "usage"
|
|
}
|
|
],
|
|
"@babel/typescript"
|
|
],
|
|
"env": {
|
|
"development": {
|
|
"plugins": ["@babel/transform-runtime"]
|
|
},
|
|
"production": {
|
|
"plugins": ["@babel/transform-runtime", "transform-remove-console"]
|
|
},
|
|
"test": {
|
|
"presets": [
|
|
[
|
|
"@babel/env",
|
|
{
|
|
"modules": "commonjs",
|
|
"targets": {
|
|
"node": "current"
|
|
}
|
|
}
|
|
],
|
|
"@babel/typescript"
|
|
]
|
|
}
|
|
},
|
|
"plugins": [
|
|
"@babel/plugin-syntax-dynamic-import",
|
|
"@babel/plugin-syntax-import-meta",
|
|
"@babel/plugin-proposal-class-properties",
|
|
"@babel/plugin-proposal-json-strings",
|
|
[
|
|
"@babel/plugin-proposal-decorators",
|
|
{
|
|
"legacy": true
|
|
}
|
|
],
|
|
"@babel/plugin-proposal-function-sent",
|
|
"@babel/plugin-proposal-export-namespace-from",
|
|
"@babel/plugin-proposal-numeric-separator",
|
|
"@babel/plugin-proposal-throw-expressions",
|
|
"@babel/plugin-proposal-export-default-from",
|
|
"@babel/plugin-proposal-logical-assignment-operators",
|
|
"@babel/plugin-proposal-optional-chaining",
|
|
[
|
|
"@babel/plugin-proposal-pipeline-operator",
|
|
{
|
|
"proposal": "minimal"
|
|
}
|
|
],
|
|
"@babel/plugin-proposal-nullish-coalescing-operator",
|
|
"@babel/plugin-proposal-do-expressions"
|
|
]
|
|
}
|
|
|