2a254588f3
- build(deps): upgrade core-js - build(deps-dev): bump mini-css-extract-plugin from 0.6.0 to 0.7.0 (#21) - build(deps): bump react-window from 1.8.1 to 1.8.2 (#22) - build(deps-dev): bump clean-webpack-plugin from 2.0.2 to 3.0.0 - Bumps [clean-webpack-plugin](https://github.com/johnagan/clean-webpack-plugin) from 2.0.2 to 3.0.0. - update clean-webpack-plugin usage - build(deps): bump @sentry/browser from 5.3.0 to 5.4.0 (#24) - build(deps-dev): bump react-hot-loader from 4.8.8 to 4.9.0 (#26) - build(deps-dev): bump autoprefixer from 9.5.1 to 9.6.0 (#27) - move browserslist to package.json
35 lines
640 B
JavaScript
35 lines
640 B
JavaScript
'use strict';
|
|
|
|
const presets = [
|
|
[
|
|
'@babel/preset-env',
|
|
{
|
|
modules: false,
|
|
// see also zloirock/core-js https://bit.ly/2JLnrgw
|
|
useBuiltIns: 'entry',
|
|
corejs: 3
|
|
}
|
|
],
|
|
'@babel/preset-react'
|
|
];
|
|
|
|
const plugins = [
|
|
'react-hot-loader/babel',
|
|
[
|
|
'@babel/plugin-transform-runtime',
|
|
{
|
|
corejs: false,
|
|
helpers: true,
|
|
regenerator: true,
|
|
useESModules: true
|
|
}
|
|
],
|
|
'@babel/plugin-syntax-dynamic-import',
|
|
'@babel/plugin-proposal-class-properties',
|
|
'@babel/plugin-proposal-do-expressions'
|
|
];
|
|
|
|
module.exports = api => {
|
|
api.cache(true);
|
|
return { presets, plugins };
|
|
};
|