Skip to content

Commit

Permalink
fix(compiler-sfc): normalize windows paths when resolving types (#8136)
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 committed Apr 24, 2023
1 parent 2d9f6f9 commit 29da504
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compiler-sfc/src/script/resolveType.ts
Expand Up @@ -718,7 +718,7 @@ function importSourceToScope(
let resolved
if (source.startsWith('.')) {
// relative import - fast path
const filename = path.join(scope.filename, '..', source)
const filename = normalizePath(path.join(scope.filename, '..', source))
resolved = resolveExt(filename, fs)
} else {
// module or aliased import - use full TS resolution, only supported in Node
Expand Down

0 comments on commit 29da504

Please sign in to comment.