Extract Babel config

This commit is contained in:
Dmitry Lyzo 2020-12-04 00:49:37 +03:00
parent c718d16f1c
commit 705a6d6359
3 changed files with 21 additions and 22 deletions

20
babel.config.js Normal file
View file

@ -0,0 +1,20 @@
module.exports = {
babelrcRoots: [
// Keep the root as a root
'.'
],
presets: [
[
'@babel/preset-env',
{
useBuiltIns: 'usage',
corejs: 3
}
]
],
plugins: [
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-private-methods',
'babel-plugin-dynamic-import-polyfill'
]
};