We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 956a946 commit fff914dCopy full SHA for fff914d
1 file changed
src/shared.js
@@ -83,7 +83,7 @@ export function contentOrFile(pathOrContent, mock) {
83
}
84
85
return p.then(text => ({
86
- path: filePath,
+ path: filePath && filePath.replace(/\\/g, '/'),
87
contents: ensureSemicolon(stripSourceMappingUrl(text || '')),
88
sourceMap: getSourceMap(text, filePath)
89
}));
0 commit comments