File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,8 @@ function preprocessorFactory(config, emitter) {
82
82
controller . karmaEmitter = emitter ;
83
83
}
84
84
85
+ const normalize = ( file ) => file . replace ( / \\ / g, '/' ) ;
86
+
85
87
const transformPath =
86
88
config . webpack . transformPath ||
87
89
( ( filepath ) => {
@@ -93,7 +95,7 @@ function preprocessorFactory(config, emitter) {
93
95
return async function processFile ( content , file , done ) {
94
96
await controller . bundle ( ) ;
95
97
96
- file . path = transformPath ( file . path ) ; // eslint-disable-line no-param-reassign
98
+ file . path = normalize ( transformPath ( file . path ) ) ; // eslint-disable-line no-param-reassign
97
99
98
100
const bundleContent = controller . bundlesContent [ path . parse ( file . path ) . base ] ;
99
101
done ( null , bundleContent ) ;
You can’t perform that action at this time.
0 commit comments