32 lines
606 B
JavaScript
32 lines
606 B
JavaScript
module.exports = {
|
|
presets: [
|
|
[
|
|
'@babel/preset-env',
|
|
{
|
|
targets: {
|
|
node: 'current'
|
|
}
|
|
}
|
|
],
|
|
'@babel/react',
|
|
'@babel/preset-typescript',
|
|
'@babel/flow'
|
|
],
|
|
plugins: [
|
|
'@babel/plugin-proposal-class-properties',
|
|
'@babel/plugin-proposal-optional-chaining',
|
|
'@babel/plugin-proposal-nullish-coalescing-operator',
|
|
'@babel/plugin-proposal-object-rest-spread',
|
|
'@babel/plugin-syntax-dynamic-import',
|
|
'react-hot-loader/babel',
|
|
['webpack-alias', { config: './source/webpack.dev.js' }],
|
|
[
|
|
'ramda',
|
|
{
|
|
useES: true
|
|
}
|
|
],
|
|
'babel-plugin-styled-components'
|
|
]
|
|
}
|