diff --git a/src/module.ts b/src/module.ts index 00a265e1a..f2ae47fa3 100644 --- a/src/module.ts +++ b/src/module.ts @@ -595,7 +595,7 @@ export default defineNuxtModule({ addTemplate({ filename: 'content-components.mjs', getContents ({ options }) { - const components = options.getComponents(options.mode).filter((c: any) => !c.island).flatMap((c: any) => { + const components = options.getComponents().filter((c: any) => !c.island).flatMap((c: any) => { const exp = c.export === 'default' ? 'c.default || c' : `c['${c.export}']` const isClient = c.mode === 'client' const definitions: string[] = []