From 5b47534c504a63dc008c506c7b26db9a33a86084 Mon Sep 17 00:00:00 2001 From: Serraniel Date: Wed, 26 Aug 2020 18:29:09 +0200 Subject: [PATCH] #35 babel plugin for modules --- .babelrc | 27 +++++++++++++++++++++++++++ package.json | 1 + 2 files changed, 28 insertions(+) create mode 100644 .babelrc 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",