diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..4d03f94 --- /dev/null +++ b/.babelrc @@ -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 + } + ] + ] +} \ No newline at end of file diff --git a/package.json b/package.json index a6ad5b8..f6e007a 100644 --- a/package.json +++ b/package.json @@ -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",