Skip to content

Commit

Permalink
fix: run modules before createUnimport (#3016)
Browse files Browse the repository at this point in the history
  • Loading branch information
huang-julien authored Jan 21, 2025
1 parent 749f035 commit 005a74f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/nitro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ export async function createNitro(
// Tasks
addNitroTasksVirtualFile(nitro);

// Scan and install modules
await installModules(nitro);

// Auto imports
if (nitro.options.imports) {
// Create unimport instance
Expand All @@ -78,8 +81,5 @@ export async function createNitro(
nitro.options.virtual["#nitro"] = 'export * from "#imports"';
}

// Scan and install modules as last step
await installModules(nitro);

return nitro;
}

0 comments on commit 005a74f

Please sign in to comment.