diff --git a/src/index.ts b/src/index.ts index 1917d0af1..1e7530904 100644 --- a/src/index.ts +++ b/src/index.ts @@ -118,7 +118,7 @@ const normalizeOptions = async ( } if (Array.isArray(entry)) { - const matcher = picomatch(entry) + const matcher = picomatch(entry, { windows: true }) options.entry = await new fdir() .withRelativePaths() .filter((file) => matcher(file)) diff --git a/test/utils.ts b/test/utils.ts index 7924fa807..777b78dd7 100644 --- a/test/utils.ts +++ b/test/utils.ts @@ -61,7 +61,7 @@ export async function run( .withRelativePaths() .crawl(path.resolve(testDir, 'dist')) .withPromise() - .then((res) => res.sort()) + .then((res) => res.map((f) => f.replaceAll('\\', '/'))) return { get output() {