Skip to content

Commit 20dd09d

Browse files
mattwmjhaoqunjiang
authored andcommitted
fix: build --target lib should merge externals in vue.config.js (#2653)
fixes #2646
1 parent da64938 commit 20dd09d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/@vue/cli-service/lib/commands/build/resolveLibConfig.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ module.exports = (api, { entry, name }, options) => {
4646
// externalize Vue in case user imports it
4747
config
4848
.externals({
49+
...config.get('externals'),
4950
vue: {
5051
commonjs: 'vue',
5152
commonjs2: 'vue',

0 commit comments

Comments
 (0)