fix(compiler-sfc): normalize windows paths when resolving types (#8136)

This commit is contained in:
edison 2023-04-24 11:03:57 +08:00 committed by GitHub
parent 2d9f6f9264
commit 29da504687
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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