Skip to content

Commit fde8f22

Browse files
committed
fix bundle.ts: reliable detection for vitepress/package.json
1 parent fb5dbb2 commit fde8f22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node/build/bundle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export async function bundle(
142142
if (/(^|\/)config\.([cm]?js|ts|json)$/.test(id)) {
143143
return 'framework'
144144
}
145-
if (id.endsWith('/vitepress/package.json')) {
145+
if (/(^|\/)vitepress\/package.json$/.test(id)) {
146146
return 'framework'
147147
}
148148

0 commit comments

Comments
 (0)