|
|
@ -109,7 +109,7 @@ export async function build(
|
|
|
|
clientResult.output.some(
|
|
|
|
clientResult.output.some(
|
|
|
|
(chunk) =>
|
|
|
|
(chunk) =>
|
|
|
|
chunk.type === 'chunk' &&
|
|
|
|
chunk.type === 'chunk' &&
|
|
|
|
chunk.name === 'theme' &&
|
|
|
|
(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'))
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
@ -117,7 +117,7 @@ export async function build(
|
|
|
|
|
|
|
|
|
|
|
|
if (isDefaultTheme) {
|
|
|
|
if (isDefaultTheme) {
|
|
|
|
const fontURL = assets.find((file) =>
|
|
|
|
const fontURL = assets.find((file) =>
|
|
|
|
/inter-roman-latin\.\w+\.woff2/.test(file)
|
|
|
|
/inter-roman-latin\.[\w-]+\.woff2/.test(file)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
if (fontURL) {
|
|
|
|
if (fontURL) {
|
|
|
|
additionalHeadTags.push([
|
|
|
|
additionalHeadTags.push([
|
|
|
|