perf(nuxt): don't wait for key deps check (#27638)

This commit is contained in:
Julien Huang 2024-06-15 23:42:41 +02:00 committed by GitHub
parent 88f0b4f420
commit 44d3dffe70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -664,7 +664,9 @@ export async function loadNuxt (opts: LoadNuxtOptions): Promise<Nuxt> {
const nuxt = createNuxt(options)
await Promise.all(keyDependencies.map(dependency => checkDependencyVersion(dependency, nuxt._version)))
for (const dep of keyDependencies) {
checkDependencyVersion(dep, nuxt._version)
}
// We register hooks layer-by-layer so any overrides need to be registered separately
if (opts.overrides?.hooks) {