mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-30 02:32:58 +05:30
40 lines
932 B
JavaScript
40 lines
932 B
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-transform-runtime',
|
|
{
|
|
corejs: 3
|
|
}
|
|
],
|
|
['react-intl', { messagesDir: './dist/messages/' }]
|
|
],
|
|
env: {
|
|
webpack: {
|
|
presets: [
|
|
[
|
|
'@babel/preset-env',
|
|
{
|
|
modules: false,
|
|
useBuiltIns: 'usage', // or "entry"
|
|
corejs: 3
|
|
}
|
|
]
|
|
]
|
|
},
|
|
development: {
|
|
presets: []
|
|
},
|
|
test: {
|
|
presets: []
|
|
}
|
|
}
|
|
};
|