We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a888f8 commit 093b4d5Copy full SHA for 093b4d5
src/utils/setupOutputFileSystem.js
@@ -27,7 +27,9 @@ export default function setupOutputFileSystem(context) {
27
} else {
28
outputFileSystem = createFsFromVolume(new Volume());
29
// TODO: remove when we drop webpack@4 support
30
- outputFileSystem.join = path.join.bind(path);
+ const newPath = Object.assign({}, path);
31
+ newPath.join = (...files) => path.join(...files).replace(/[\\/]+/g, '/');
32
+ outputFileSystem.join = newPath.join.bind(newPath);
33
}
34
35
const compilers = context.compiler.compilers || [context.compiler];
0 commit comments