From fde8f223e012bd8084589357dcc0a5ef4f4b4b90 Mon Sep 17 00:00:00 2001 From: Yuxuan Zhang Date: Sun, 30 Mar 2025 00:56:12 -0400 Subject: [PATCH] fix bundle.ts: reliable detection for `vitepress/package.json` --- src/node/build/bundle.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' }