mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-01-11 14:22:08 +05:30
39 lines
1.0 KiB
JavaScript
39 lines
1.0 KiB
JavaScript
module.exports = {
|
|
presets: ['@babel/preset-react', '@babel/preset-flow', ['@babel/preset-env']],
|
|
plugins: [
|
|
'@babel/plugin-syntax-dynamic-import',
|
|
'@babel/plugin-proposal-function-bind',
|
|
'@babel/plugin-proposal-class-properties',
|
|
'@babel/plugin-proposal-optional-chaining',
|
|
'@babel/plugin-proposal-nullish-coalescing-operator',
|
|
[
|
|
'@babel/plugin-transform-runtime',
|
|
{
|
|
corejs: 3
|
|
}
|
|
],
|
|
['react-intl', { messagesDir: './dist/messages/' }]
|
|
],
|
|
env: {
|
|
webpack: {
|
|
plugins: ['react-hot-loader/babel'],
|
|
presets: [
|
|
[
|
|
'@babel/preset-env',
|
|
{
|
|
modules: false,
|
|
useBuiltIns: 'usage', // or "entry"
|
|
corejs: 3
|
|
}
|
|
]
|
|
]
|
|
},
|
|
development: {
|
|
presets: []
|
|
},
|
|
test: {
|
|
presets: []
|
|
}
|
|
}
|
|
};
|