diff --git a/packages/nuxt/src/components/module.ts b/packages/nuxt/src/components/module.ts index afc7047f43..71472e66d6 100644 --- a/packages/nuxt/src/components/module.ts +++ b/packages/nuxt/src/components/module.ts @@ -202,6 +202,7 @@ export default defineNuxtModule({ 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({ 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 })) })