fix: yarn dev will throw errors if loading released plugins (#5671)

This commit is contained in:
gchust 2024-11-18 15:57:02 +08:00 committed by GitHub
parent aad163c4e1
commit 64ea1f8fe2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -322,7 +322,7 @@ export async function buildPluginClient(cwd: string, userConfig: UserConfig, sou
const globals = excludePackages.reduce<Record<string, string>>((prev, curr) => {
if (curr.startsWith('@nocobase')) {
prev[`${curr}/client`] = curr;
prev[`${curr}/client`] = `${curr}/client`;
}
prev[curr] = curr;
return prev;