Skip to content

Commit

Permalink
fix(dev): fix absolute paths imports on windows (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaharu committed Dec 5, 2023
1 parent 6801a21 commit d577402
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { readFile, stat } from "node:fs/promises";
import { consola } from "consola";
import { dirname, join, resolve } from "pathe";
import type { ConsolaInstance } from "consola";
import { resolvePath } from "mlly";
import { resolve as _resolve } from "mlly";
import { createResolver } from "./_resolver";

export interface DevServerOptions {
Expand All @@ -18,7 +18,7 @@ export async function createDevServer(
) {
const logger = options.logger || consola.withTag("listhen");

const h3Entry = await resolvePath("h3", {
const h3Entry = await _resolve("h3", {
url: [options.cwd!, process.cwd(), import.meta.url].filter(Boolean),
});

Expand Down

0 comments on commit d577402

Please sign in to comment.