We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac7fe8b commit b783e1cCopy full SHA for b783e1c
lib/karma-webpack.js
@@ -82,6 +82,8 @@ function preprocessorFactory(config, emitter) {
82
controller.karmaEmitter = emitter;
83
}
84
85
+ const normalize = (file) => file.replace(/\\/g, '/');
86
+
87
const transformPath =
88
config.webpack.transformPath ||
89
((filepath) => {
@@ -93,7 +95,7 @@ function preprocessorFactory(config, emitter) {
93
95
return async function processFile(content, file, done) {
94
96
await controller.bundle();
97
- file.path = transformPath(file.path); // eslint-disable-line no-param-reassign
98
+ file.path = normalize(transformPath(file.path)); // eslint-disable-line no-param-reassign
99
100
const bundleContent = controller.bundlesContent[path.parse(file.path).base];
101
done(null, bundleContent);
0 commit comments