2021-11-18 10:38:58 -06:00
|
|
|
{
|
|
|
|
"babelrc": false,
|
|
|
|
// Note: order is bottom-to-top and/or right-to-left
|
|
|
|
"presets": [
|
|
|
|
[
|
|
|
|
"@babel/preset-env",
|
|
|
|
{
|
|
|
|
"bugfixes": true,
|
|
|
|
"browserslistEnv": "dev",
|
|
|
|
"useBuiltIns": "entry",
|
|
|
|
"corejs": "3.10"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"@babel/preset-typescript",
|
|
|
|
{
|
|
|
|
"allowNamespaces": true,
|
|
|
|
"allowDeclareFields": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"@babel/preset-react",
|
|
|
|
{
|
|
|
|
"runtime": "automatic"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"plugins": [
|
|
|
|
[
|
|
|
|
"@babel/plugin-transform-typescript",
|
|
|
|
{
|
|
|
|
"allowNamespaces": true,
|
|
|
|
"allowDeclareFields": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
["@babel/plugin-proposal-object-rest-spread", { "loose": true }],
|
|
|
|
"@babel/plugin-transform-react-constant-elements",
|
|
|
|
"@babel/plugin-proposal-nullish-coalescing-operator",
|
|
|
|
"@babel/plugin-proposal-optional-chaining",
|
|
|
|
"@babel/plugin-syntax-dynamic-import", // needed for `() => import()` in routes.ts
|
2021-12-15 10:00:37 -06:00
|
|
|
"angularjs-annotate",
|
|
|
|
"macros"
|
2021-11-18 10:38:58 -06:00
|
|
|
],
|
|
|
|
"env": {
|
|
|
|
"production": {
|
|
|
|
"presets": [
|
|
|
|
[
|
|
|
|
"@babel/preset-env",
|
|
|
|
{
|
|
|
|
"browserslistEnv": "production"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"hot": {
|
|
|
|
"plugins": ["react-refresh/babel"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|