Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
fix(kit): add external module to transpile
Browse files Browse the repository at this point in the history
  • Loading branch information
xtoolkit committed Nov 14, 2022
1 parent 7677eec commit 5eb7adc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/kit/src/module/install.ts
Expand Up @@ -17,6 +17,10 @@ export async function installModule (moduleToInstall: string | NuxtModule, _inli
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?.(),
Expand Down

0 comments on commit 5eb7adc

Please sign in to comment.