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.
36 lines
792 B
36 lines
792 B
6 years ago
|
const loose = true;
|
||
|
|
||
|
module.exports = {
|
||
|
plugins: [
|
||
|
// Stage 1
|
||
|
'@babel/plugin-proposal-export-default-from',
|
||
|
['@babel/plugin-proposal-optional-chaining', { loose }],
|
||
|
['@babel/plugin-proposal-nullish-coalescing-operator', { loose }],
|
||
|
|
||
|
// Stage 2
|
||
|
'@babel/plugin-proposal-export-namespace-from',
|
||
|
|
||
|
// Stage 3
|
||
|
['@babel/plugin-proposal-class-properties', { loose }],
|
||
|
'@babel/plugin-syntax-dynamic-import'
|
||
|
],
|
||
|
env: {
|
||
|
development: {
|
||
|
presets: [
|
||
|
['@babel/preset-react', { development: true }]
|
||
|
],
|
||
|
plugins: [
|
||
|
'babel-plugin-inline-classnames'
|
||
|
]
|
||
|
},
|
||
|
production: {
|
||
|
presets: [
|
||
|
'@babel/preset-react'
|
||
|
],
|
||
|
plugins: [
|
||
|
'babel-plugin-transform-react-remove-prop-types'
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
};
|