mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-16 21:58:19 +00:00
fix(bridge): add modules with hooks after all other modules (#3239)
This commit is contained in:
parent
07c14b8704
commit
7c9b0a358d
@ -9,7 +9,7 @@ const ImportRewrites = {
|
||||
vue: '@vue/composition-api'
|
||||
}
|
||||
|
||||
export async function setupAutoImports () {
|
||||
export function setupAutoImports () {
|
||||
const nuxt = useNuxt()
|
||||
|
||||
nuxt.hook('autoImports:extend', (autoImports) => {
|
||||
@ -39,5 +39,5 @@ export async function setupAutoImports () {
|
||||
autoImports.push({ name: 'useNuxt2Meta', as: 'useNuxt2Meta', from: '#app' })
|
||||
})
|
||||
|
||||
await installModule(autoImports)
|
||||
nuxt.hook('modules:done', () => installModule(autoImports))
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ export default defineNuxtModule({
|
||||
}
|
||||
if (opts.vite) {
|
||||
const viteModule = await import('./vite/module').then(r => r.default || r) as NuxtModule
|
||||
await installModule(viteModule)
|
||||
nuxt.hook('modules:done', () => installModule(viteModule))
|
||||
}
|
||||
if (opts.postcss8) {
|
||||
await installModule(_require.resolve('@nuxt/postcss8'))
|
||||
|
Loading…
Reference in New Issue
Block a user