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