2019-12-08 02:48:30 +05:30
|
|
|
/* eslint-env node */
|
2019-06-30 20:49:28 +05:30
|
|
|
module.exports = {
|
2019-12-07 16:58:52 +05:30
|
|
|
presets: [
|
2019-12-12 12:56:23 +05:30
|
|
|
[
|
|
|
|
'@babel/preset-typescript',
|
|
|
|
{
|
|
|
|
allowDeclareFields: true,
|
|
|
|
},
|
|
|
|
],
|
2019-12-07 16:58:52 +05:30
|
|
|
'@babel/preset-react',
|
2019-12-12 12:56:23 +05:30
|
|
|
'@babel/preset-env',
|
2019-12-07 16:58:52 +05:30
|
|
|
],
|
2019-11-27 14:33:32 +05:30
|
|
|
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,
|
|
|
|
},
|
|
|
|
],
|
2019-12-30 13:51:28 +05:30
|
|
|
['react-intl', { messagesDir: './build/messages/' }],
|
2019-11-27 14:33:32 +05:30
|
|
|
],
|
|
|
|
env: {
|
|
|
|
webpack: {
|
|
|
|
plugins: ['react-hot-loader/babel'],
|
|
|
|
presets: [
|
2019-06-30 20:49:28 +05:30
|
|
|
[
|
2019-11-27 14:33:32 +05:30
|
|
|
'@babel/preset-env',
|
|
|
|
{
|
|
|
|
modules: false,
|
|
|
|
useBuiltIns: 'usage', // or "entry"
|
|
|
|
corejs: 3,
|
|
|
|
},
|
2019-06-30 20:49:28 +05:30
|
|
|
],
|
2019-11-27 14:33:32 +05:30
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2019-06-30 20:49:28 +05:30
|
|
|
};
|