Skip to content

Commit 093b4d5

Browse files
committed
fix(output-file-system): change from backslash to forward slash in join
1 parent 7a888f8 commit 093b4d5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/utils/setupOutputFileSystem.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ export default function setupOutputFileSystem(context) {
2727
} else {
2828
outputFileSystem = createFsFromVolume(new Volume());
2929
// TODO: remove when we drop webpack@4 support
30-
outputFileSystem.join = path.join.bind(path);
30+
const newPath = Object.assign({}, path);
31+
newPath.join = (...files) => path.join(...files).replace(/[\\/]+/g, '/');
32+
outputFileSystem.join = newPath.join.bind(newPath);
3133
}
3234

3335
const compilers = context.compiler.compilers || [context.compiler];

0 commit comments

Comments
 (0)