fix(nuxt): regenerate imports after template (#21934)

This commit is contained in:
Anthony Fu 2023-07-05 11:25:21 +02:00 committed by GitHub
parent dfef49f508
commit 28e91a7aad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,7 +126,7 @@ export default defineNuxtModule<Partial<ImportsOptions>>({
}
})
nuxt.hook('builder:generateApp', async () => {
nuxt.hook('app:templatesGenerated', async () => {
await regenerateImports()
})
}