mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-26 15:00:23 +05:30
43 lines
899 B
JavaScript
43 lines
899 B
JavaScript
/* eslint-env node */
|
|
module.exports = {
|
|
presets: [
|
|
[
|
|
'@babel/preset-typescript',
|
|
{
|
|
allowDeclareFields: true,
|
|
},
|
|
],
|
|
'@babel/preset-react',
|
|
'@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: './build/messages/' }],
|
|
],
|
|
env: {
|
|
webpack: {
|
|
plugins: ['react-hot-loader/babel'],
|
|
presets: [
|
|
[
|
|
'@babel/preset-env',
|
|
{
|
|
modules: false,
|
|
useBuiltIns: 'usage', // or "entry"
|
|
corejs: 3,
|
|
},
|
|
],
|
|
],
|
|
},
|
|
},
|
|
};
|