From daeb18c6fa86b44213992c90ea26fbb89c46c492 Mon Sep 17 00:00:00 2001 From: Zhi Date: Sun, 27 Jan 2019 20:00:07 +0800 Subject: [PATCH] Build: fix export error fired in commonjs module used in nuxt.js --- .babelrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.babelrc b/.babelrc index c998ebb72..efb8a34e1 100644 --- a/.babelrc +++ b/.babelrc @@ -15,6 +15,14 @@ "plugins": ["transform-vue-jsx"], "env": { "utils": { + "presets": [ + [ + "env", + { + "modules": "commonjs", + } + ], + ], "plugins": [ ["module-resolver", { "root": ["element-ui"],