madiator.com/babel.config.js
2021-08-16 12:11:25 +02:00

16 lines
485 B
JavaScript

module.exports = api => {
api.cache(false);
return {
presets: [['@babel/env', { loose: true, modules: false }], '@babel/react', '@babel/flow'],
plugins: [
'import-glob',
'@babel/plugin-transform-runtime',
['@babel/plugin-proposal-decorators', { decoratorsBeforeExport: true }],
'@babel/plugin-transform-flow-strip-types',
'@babel/plugin-proposal-class-properties',
'react-hot-loader/babel',
],
ignore: [/node_modules/],
};
};