accounts-frontend/babel.config.js

43 lines
898 B
JavaScript
Raw Normal View History

/* 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
],
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: './dist/messages/' }],
],
env: {
webpack: {
plugins: ['react-hot-loader/babel'],
presets: [
2019-06-30 20:49:28 +05:30
[
'@babel/preset-env',
{
modules: false,
useBuiltIns: 'usage', // or "entry"
corejs: 3,
},
2019-06-30 20:49:28 +05:30
],
],
},
},
2019-06-30 20:49:28 +05:30
};