Skip to content

Commit fff914d

Browse files
committed
fix: normalise file path for windows
1 parent 956a946 commit fff914d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/shared.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export function contentOrFile(pathOrContent, mock) {
8383
}
8484

8585
return p.then(text => ({
86-
path: filePath,
86+
path: filePath && filePath.replace(/\\/g, '/'),
8787
contents: ensureSemicolon(stripSourceMappingUrl(text || '')),
8888
sourceMap: getSourceMap(text, filePath)
8989
}));

0 commit comments

Comments
 (0)