未验证 提交 129e32f8 编写于 作者: J JJ Kasper 提交者: GitHub

Fix windows paths mismatching for type errors (#8766)

上级 4e9e5103
...@@ -265,13 +265,13 @@ export function watchCompilers( ...@@ -265,13 +265,13 @@ export function watchCompilers(
const errors = allMsgs const errors = allMsgs
.filter(msg => msg.severity === 'error') .filter(msg => msg.severity === 'error')
.map(d => ({ .map(d => ({
file: d.file, file: (d.file || '').replace(/\\/g, '/'),
message: format(d), message: format(d),
})) }))
const warnings = allMsgs const warnings = allMsgs
.filter(msg => msg.severity === 'warning') .filter(msg => msg.severity === 'warning')
.map(d => ({ .map(d => ({
file: d.file, file: (d.file || '').replace(/\\/g, '/'),
message: format(d), message: format(d),
})) }))
...@@ -310,7 +310,7 @@ export function watchCompilers( ...@@ -310,7 +310,7 @@ export function watchCompilers(
} }
const reportFiles = stats.compilation.modules const reportFiles = stats.compilation.modules
.map((m: any) => m.resource) .map((m: any) => (m.resource || '').replace(/\\/g, '/'))
.filter(Boolean) .filter(Boolean)
let filteredErrors = typeMessages.errors let filteredErrors = typeMessages.errors
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册