#35 babel plugin for modules
This commit is contained in:
parent
a4e7fb061b
commit
5b47534c50
27
.babelrc
Normal file
27
.babelrc
Normal 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
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
|
@ -9,6 +9,7 @@
|
|||
"devDependencies": {
|
||||
"@babel/compat-data": "^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-private-methods": "^7.10.1",
|
||||
"@babel/preset-env": "^7.10.3",
|
||||
|
|
Loading…
Reference in a new issue