Skip to content

Commit

Permalink
fix(resolve): normalize optimized resolved path (#4813)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Sep 1, 2021
1 parent c6896e8 commit fa6475f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/resolve.ts
Expand Up @@ -520,7 +520,7 @@ export function tryOptimizedResolve(
if (resolvedSrc == null) {
try {
// this may throw errors if unable to resolve, e.g. aliased id
resolvedSrc = resolveFrom(id, path.dirname(importer))
resolvedSrc = normalizePath(resolveFrom(id, path.dirname(importer)))
} catch {
// this is best-effort only so swallow errors
break
Expand Down

0 comments on commit fa6475f

Please sign in to comment.