fix: modify chunk rules to avoid circular import

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

@ -139,6 +139,12 @@ export async function bundle(
) {
return 'framework'
}
if (/(^|\/)config\.([cm]?js|ts|json)$/.test(id)) {
return 'framework'
}
if (id.endsWith('/vitepress/package.json')) {
return 'framework'
}
if (
(id.startsWith(`${clientDir}/theme-default`) ||

Loading…
Cancel
Save