Skip to content

Commit

Permalink
fix: initialise imports.imports
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Dec 6, 2022
1 parent d04554a commit f5692b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ export async function loadOptions (configOverrides: NitroConfig = {}): Promise<N

// Normalise absolute auto-import paths for windows machines
if (options.imports && options.dev) {
options.imports.imports = options.imports.imports || []
for (const entry of options.imports.imports) {
if (isAbsolute(entry.from)) {
entry.from = pathToFileURL(entry.from).href
Expand Down

0 comments on commit f5692b2

Please sign in to comment.