mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-26 09:09:05 -06:00
fix: build --target lib should merge externals in vue.config.js (#2653)
fixes #2646
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user