chore: add `@ts-ignore` to `vite.rolldownVersion` access (#4816)

pull/4827/head
3 months ago committed by GitHub
parent c8fc80e438
commit a9d87b2f46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -109,6 +109,7 @@ export async function build(
clientResult.output.some( clientResult.output.some(
(chunk) => (chunk) =>
chunk.type === 'chunk' && chunk.type === 'chunk' &&
// @ts-ignore only exists for rolldown-vite
(vite.rolldownVersion || chunk.name === 'theme') && // FIXME: remove when rolldown-vite supports manualChunks (vite.rolldownVersion || chunk.name === 'theme') && // FIXME: remove when rolldown-vite supports manualChunks
chunk.moduleIds.some((id) => id.includes('client/theme-default')) chunk.moduleIds.some((id) => id.includes('client/theme-default'))
) )

Loading…
Cancel
Save