Skip to content

Commit

Permalink
fix: scan dirs for unimport on initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Nov 13, 2023
1 parent 2d803a3 commit 3a63c6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/nitro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export async function createNitro(
// Auto imports
if (nitro.options.imports) {
nitro.unimport = createUnimport(nitro.options.imports);
await nitro.unimport.init();
// Support for importing from '#imports'
nitro.options.virtual["#imports"] = () => nitro.unimport.toExports();
// Backward compatibility
Expand Down

0 comments on commit 3a63c6c

Please sign in to comment.