Skip to content

Commit 3a3bfba

Browse files
committed
fix: "commonjs2" target should not be used with "output.library"
Closes vuejs#6188
1 parent 3608b04 commit 3a3bfba

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

+5
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,11 @@ module.exports = (api, { entry, name, formats, filename, 'inline-vue': inlineVue
129129
publicPath: ''
130130
})
131131

132+
if (format === 'commonjs2') {
133+
// #6188
134+
delete rawConfig.output.library
135+
}
136+
132137
return rawConfig
133138
}
134139

0 commit comments

Comments
 (0)