fix bundle.ts: reliable detection for `vitepress/package.json`

pull/4660/head
Yuxuan Zhang 6 months ago
parent fb5dbb2e72
commit fde8f223e0
No known key found for this signature in database
GPG Key ID: 6910B04F3351EF7D

@ -142,7 +142,7 @@ export async function bundle(
if (/(^|\/)config\.([cm]?js|ts|json)$/.test(id)) { if (/(^|\/)config\.([cm]?js|ts|json)$/.test(id)) {
return 'framework' return 'framework'
} }
if (id.endsWith('/vitepress/package.json')) { if (/(^|\/)vitepress\/package.json$/.test(id)) {
return 'framework' return 'framework'
} }

Loading…
Cancel
Save