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 (#8963)
Browse files Browse the repository at this point in the history
  • Loading branch information
xtoolkit authored and danielroe committed Jan 21, 2023
1 parent f231269 commit 3f1cea0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/kit/src/module/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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?.(),
Expand Down

0 comments on commit 3f1cea0

Please sign in to comment.