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
717 B
36 lines
717 B
module.exports = {
|
|
presets: [
|
|
[
|
|
'@babel/preset-env',
|
|
{
|
|
targets: {
|
|
node: 8,
|
|
browsers: 'electron 2.0'
|
|
},
|
|
useBuiltIns: 'usage'
|
|
}
|
|
],
|
|
'@babel/preset-flow',
|
|
'@babel/react'
|
|
],
|
|
plugins: [
|
|
'@babel/plugin-proposal-object-rest-spread',
|
|
'@babel/plugin-proposal-class-properties',
|
|
'@babel/plugin-proposal-export-default-from',
|
|
'@babel/plugin-transform-classes',
|
|
'@babel/plugin-transform-destructuring',
|
|
'babel-plugin-styled-components',
|
|
[
|
|
'react-intl-auto',
|
|
{
|
|
removePrefix: 'app/',
|
|
filebase: false
|
|
}
|
|
]
|
|
],
|
|
env: {
|
|
production: {
|
|
presets: ['react-optimize']
|
|
}
|
|
}
|
|
}
|
|
|