build(components): fix generateExternal use wrong reference (#12180)

This commit is contained in:
Qi FANG 2023-04-08 22:05:44 +08:00 committed by GitHub
parent 4a9397dd7e
commit 682553a27e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ export const generateExternal = async (options: { full: boolean }) => {
const { dependencies, peerDependencies } = getPackageDependencies(epPackage)
return (id: string) => {
const packages: string[] = peerDependencies
const packages: string[] = [...peerDependencies]
if (!options.full) {
packages.push('@vue', ...dependencies)
}