fix: build --target lib should merge externals in vue.config.js (#2653)

fixes #2646
This commit is contained in:
mattwmj
2018-09-30 18:43:32 +08:00
committed by Haoqun Jiang
parent da64938550
commit 20dd09d0a8

View File

@@ -46,6 +46,7 @@ module.exports = (api, { entry, name }, options) => {
// externalize Vue in case user imports it
config
.externals({
...config.get('externals'),
vue: {
commonjs: 'vue',
commonjs2: 'vue',