Skip to content

Commit 6032a22

Browse files
committed
Match webpack sourcemap relative paths
Adjust source path to match the way webpack generates sourcemaps for js. This makes css and js sources appear in the same directory when using sourcemaps in chrome. Fixes webpack-contrib#1218.
1 parent 1351e3a commit 6032a22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ function normalizeSourceMapForRuntime(map, loaderContext) {
484484
path.relative(loaderContext.rootContext, absoluteSource)
485485
);
486486

487-
return `webpack://${contextifyPath}`;
487+
return `webpack://./${contextifyPath}`;
488488
});
489489
}
490490

0 commit comments

Comments
 (0)