accounts-frontend/babel.config.js

43 lines
899 B
JavaScript
Raw Normal View History

/* eslint-env node */
2019-06-30 18:19:28 +03:00
module.exports = {
2019-12-07 13:28:52 +02:00
presets: [
2019-12-12 09:26:23 +02:00
[
'@babel/preset-typescript',
{
allowDeclareFields: true,
},
],
2019-12-07 13:28:52 +02:00
'@babel/preset-react',
2019-12-12 09:26:23 +02:00
'@babel/preset-env',
2019-12-07 13:28:52 +02:00
],
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 10:21:28 +02:00
['react-intl', { messagesDir: './build/messages/' }],
],
env: {
webpack: {
plugins: ['react-hot-loader/babel'],
presets: [
2019-06-30 18:19:28 +03:00
[
'@babel/preset-env',
{
modules: false,
useBuiltIns: 'usage', // or "entry"
corejs: 3,
},
2019-06-30 18:19:28 +03:00
],
],
},
},
2019-06-30 18:19:28 +03:00
};