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) {
8282 controller . karmaEmitter = emitter ;
8383 }
8484
85+ const normalize = ( file ) => file . replace ( / \\ / g, '/' ) ;
86+
8587 const transformPath =
8688 config . webpack . transformPath ||
8789 ( ( filepath ) => {
@@ -93,7 +95,7 @@ function preprocessorFactory(config, emitter) {
9395 return async function processFile ( content , file , done ) {
9496 await controller . bundle ( ) ;
9597
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
9799
98100 const bundleContent = controller . bundlesContent [ path . parse ( file . path ) . base ] ;
99101 done ( null , bundleContent ) ;
You can’t perform that action at this time.
0 commit comments