mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +00:00
fix(kit): add external module to transpile (#8963)
This commit is contained in:
parent
2c2fbdffc9
commit
f530cd7413
@ -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?.(),
|
||||
|
Loading…
Reference in New Issue
Block a user