2019-12-08 02:48:30 +05:30
|
|
|
/* eslint-env node */
|
2019-06-30 20:49:28 +05:30
|
|
|
module.exports = {
|
2020-05-24 04:38:24 +05:30
|
|
|
presets: [
|
|
|
|
[
|
|
|
|
'@babel/preset-typescript',
|
|
|
|
{
|
|
|
|
allowDeclareFields: true,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
'@babel/preset-react',
|
2020-05-27 15:37:25 +05:30
|
|
|
[
|
|
|
|
'@babel/preset-env',
|
|
|
|
{
|
|
|
|
ignoreBrowserslistConfig: true,
|
|
|
|
targets: {
|
|
|
|
node: true,
|
|
|
|
},
|
|
|
|
modules: 'commonjs',
|
|
|
|
},
|
|
|
|
],
|
2019-11-27 14:33:32 +05:30
|
|
|
],
|
2020-05-24 04:38:24 +05:30
|
|
|
plugins: [
|
|
|
|
'@babel/plugin-syntax-dynamic-import',
|
|
|
|
'@babel/plugin-proposal-function-bind',
|
|
|
|
'@babel/plugin-proposal-class-properties',
|
2019-06-30 20:49:28 +05:30
|
|
|
[
|
2020-05-24 04:38:24 +05:30
|
|
|
'@babel/plugin-transform-runtime',
|
|
|
|
{
|
|
|
|
corejs: 3,
|
|
|
|
},
|
2019-06-30 20:49:28 +05:30
|
|
|
],
|
2020-05-24 04:38:24 +05:30
|
|
|
['react-intl', { messagesDir: './build/messages/' }],
|
|
|
|
],
|
|
|
|
env: {
|
|
|
|
webpack: {
|
|
|
|
plugins: ['react-hot-loader/babel'],
|
|
|
|
presets: [
|
|
|
|
[
|
|
|
|
'@babel/preset-env',
|
|
|
|
{
|
2020-05-27 15:37:25 +05:30
|
|
|
ignoreBrowserslistConfig: false,
|
2020-05-24 04:38:24 +05:30
|
|
|
modules: false,
|
|
|
|
useBuiltIns: 'usage', // or "entry"
|
|
|
|
corejs: 3,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
},
|
2019-11-27 14:33:32 +05:30
|
|
|
},
|
2019-06-30 20:49:28 +05:30
|
|
|
};
|