diff --git a/packages/kit/src/module/install.ts b/packages/kit/src/module/install.ts index 961ba37b6876..df8d9554269f 100644 --- a/packages/kit/src/module/install.ts +++ b/packages/kit/src/module/install.ts @@ -11,6 +11,10 @@ export async function installModule (moduleToInstall: string | NuxtModule, _inli // Call module await nuxtModule(inlineOptions, nuxt) + if (typeof moduleToInstall === 'string') { + nuxt.options.build.transpile.push(moduleToInstall) + } + nuxt.options._installedModules = nuxt.options._installedModules || [] nuxt.options._installedModules.push({ meta: await nuxtModule.getMeta?.(),