diff --git a/src/node/build/bundle.ts b/src/node/build/bundle.ts index 67669ad4..4349f7cb 100644 --- a/src/node/build/bundle.ts +++ b/src/node/build/bundle.ts @@ -142,7 +142,7 @@ export async function bundle( if (/(^|\/)config\.([cm]?js|ts|json)$/.test(id)) { return 'framework' } - if (id.endsWith('/vitepress/package.json')) { + if (/(^|\/)vitepress\/package.json$/.test(id)) { return 'framework' }