2019-11-07 20:39:22 +01:00
|
|
|
module.exports = api => {
|
|
|
|
api.cache(false);
|
|
|
|
|
|
|
|
return {
|
2019-12-02 18:30:08 +01:00
|
|
|
presets: [['@babel/env', { loose: true, modules: false }], '@babel/react', '@babel/flow'],
|
2019-11-07 20:39:22 +01:00
|
|
|
plugins: [
|
|
|
|
'import-glob',
|
|
|
|
'@babel/plugin-transform-runtime',
|
|
|
|
['@babel/plugin-proposal-decorators', { decoratorsBeforeExport: true }],
|
2022-04-23 20:32:02 +02:00
|
|
|
['@babel/plugin-proposal-private-methods', { 'loose': false }],
|
|
|
|
['@babel/plugin-proposal-private-property-in-object', { 'loose': false }],
|
2019-11-07 20:39:22 +01:00
|
|
|
'@babel/plugin-transform-flow-strip-types',
|
|
|
|
'@babel/plugin-proposal-class-properties',
|
|
|
|
'react-hot-loader/babel',
|
|
|
|
],
|
|
|
|
ignore: [/node_modules/],
|
|
|
|
};
|
|
|
|
};
|