mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-19 17:32:38 +01:00
c77ce2459c
(cherry picked from commit 3cf4d2907e32e81050f35cda042dcc2b4641d40d)
40 lines
929 B
JavaScript
40 lines
929 B
JavaScript
const loose = true;
|
|
|
|
module.exports = {
|
|
plugins: [
|
|
'@babel/plugin-transform-logical-assignment-operators',
|
|
|
|
// Stage 1
|
|
'@babel/plugin-proposal-export-default-from',
|
|
['@babel/plugin-transform-optional-chaining', { loose }],
|
|
['@babel/plugin-transform-nullish-coalescing-operator', { loose }],
|
|
|
|
// Stage 2
|
|
'@babel/plugin-transform-export-namespace-from',
|
|
|
|
// Stage 3
|
|
['@babel/plugin-transform-class-properties', { loose }],
|
|
'@babel/plugin-syntax-dynamic-import'
|
|
],
|
|
env: {
|
|
development: {
|
|
presets: [
|
|
['@babel/preset-react', { development: true }],
|
|
'@babel/preset-typescript'
|
|
],
|
|
plugins: [
|
|
'babel-plugin-inline-classnames'
|
|
]
|
|
},
|
|
production: {
|
|
presets: [
|
|
'@babel/preset-react',
|
|
'@babel/preset-typescript'
|
|
],
|
|
plugins: [
|
|
'babel-plugin-transform-react-remove-prop-types'
|
|
]
|
|
}
|
|
}
|
|
};
|