fix(nuxt): pass transform options to component loader plugin (#19414)

This commit is contained in:
Stefan 2023-03-03 11:40:24 +01:00 committed by GitHub
parent 73ade185b2
commit 6084f6416b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -202,6 +202,7 @@ export default defineNuxtModule<ComponentsOptions>({
sourcemap: nuxt.options.sourcemap[mode],
getComponents,
mode,
transform: typeof nuxt.options.components === 'object' && !Array.isArray(nuxt.options.components) ? nuxt.options.components.transform : undefined,
experimentalComponentIslands: nuxt.options.experimental.componentIslands
}))
})
@ -219,6 +220,7 @@ export default defineNuxtModule<ComponentsOptions>({
sourcemap: nuxt.options.sourcemap[mode],
getComponents,
mode,
transform: typeof nuxt.options.components === 'object' && !Array.isArray(nuxt.options.components) ? nuxt.options.components.transform : undefined,
experimentalComponentIslands: nuxt.options.experimental.componentIslands
}))
})