lbry-desktop/babel.config.js

17 lines
485 B
JavaScript
Raw Permalink Normal View History

2019-11-07 20:39:22 +01:00
module.exports = api => {
api.cache(false);
return {
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 }],
'@babel/plugin-transform-flow-strip-types',
'@babel/plugin-proposal-class-properties',
'react-hot-loader/babel',
],
ignore: [/node_modules/],
};
};