Skip to content

Commit 20dd09d

Browse files
mattwmjhaoqunjiang
authored andcommitted
fix: build --target lib should merge externals in vue.config.js (vuejs#2653)
fixes vuejs#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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy