Skip to content

Commit 29da504

Browse files
authored
fix(compiler-sfc): normalize windows paths when resolving types (#8136)
1 parent 2d9f6f9 commit 29da504

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/compiler-sfc/src/script/resolveType.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ function importSourceToScope(
718718
let resolved
719719
if (source.startsWith('.')) {
720720
// relative import - fast path
721-
const filename = path.join(scope.filename, '..', source)
721+
const filename = normalizePath(path.join(scope.filename, '..', source))
722722
resolved = resolveExt(filename, fs)
723723
} else {
724724
// module or aliased import - use full TS resolution, only supported in Node

0 commit comments

Comments
 (0)