Extract Babel config
This commit is contained in:
parent
c718d16f1c
commit
705a6d6359
3 changed files with 21 additions and 22 deletions
20
babel.config.js
Normal file
20
babel.config.js
Normal 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'
|
||||
]
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue