Skip to content

Commit fa6475f

Browse files
authored
fix(resolve): normalize optimized resolved path (#4813)
1 parent c6896e8 commit fa6475f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vite/src/node/plugins/resolve.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ export function tryOptimizedResolve(
520520
if (resolvedSrc == null) {
521521
try {
522522
// this may throw errors if unable to resolve, e.g. aliased id
523-
resolvedSrc = resolveFrom(id, path.dirname(importer))
523+
resolvedSrc = normalizePath(resolveFrom(id, path.dirname(importer)))
524524
} catch {
525525
// this is best-effort only so swallow errors
526526
break

0 commit comments

Comments
 (0)