mirror of https://github.com/vuejs/core.git
fix(compiler-sfc): normalize windows paths when resolving types (#8136)
This commit is contained in:
parent
2d9f6f9264
commit
29da504687
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue