From 71d64d038dc8b5751eab32bdfe27c3fb21f9fb13 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Thu, 10 Jan 2019 17:11:56 +0800 Subject: [PATCH] feat: babel.config.js modules=commonjs --- template/common/babel.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/template/common/babel.config.js b/template/common/babel.config.js index cb269b4..81549ce 100644 --- a/template/common/babel.config.js +++ b/template/common/babel.config.js @@ -15,7 +15,8 @@ module.exports = { presets: [ [ '@vue/app', - { + { + modules: 'commonjs', useBuiltIns: 'entry' } ]