From 6084f6416be4192c891e6ee4c06525dfa96951b3 Mon Sep 17 00:00:00 2001 From: Stefan Date: Fri, 3 Mar 2023 11:40:24 +0100 Subject: [PATCH] fix(nuxt): pass transform options to component loader plugin (#19414) --- packages/nuxt/src/components/module.ts | 2 ++ 1 file changed, 2 insertions(+) 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 })) })