#35 babel plugin for modules

This commit is contained in:
Serraniel 2020-08-26 18:29:09 +02:00
parent a4e7fb061b
commit 5b47534c50
Signed by: Serraniel
GPG key ID: 3690B4E7364525D3
2 changed files with 28 additions and 0 deletions

27
.babelrc Normal file
View file

@ -0,0 +1,27 @@
{
"presets": [
[
"@babel/env",
{
"targets": {
"esmodules": true
},
"modules": "umd"
}
]
],
"plugins": [
[
"@babel/plugin-proposal-class-properties",
{
"loose": true
}
],
[
"@babel/plugin-proposal-private-methods",
{
"loose": true
}
]
]
}

View file

@ -9,6 +9,7 @@
"devDependencies": { "devDependencies": {
"@babel/compat-data": "^7.10.3", "@babel/compat-data": "^7.10.3",
"@babel/core": "^7.10.3", "@babel/core": "^7.10.3",
"@babel/helper-module-imports": "^7.10.4",
"@babel/plugin-proposal-class-properties": "^7.10.1", "@babel/plugin-proposal-class-properties": "^7.10.1",
"@babel/plugin-proposal-private-methods": "^7.10.1", "@babel/plugin-proposal-private-methods": "^7.10.1",
"@babel/preset-env": "^7.10.3", "@babel/preset-env": "^7.10.3",