Skip to content

Commit c8e9859

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 #1218.
1 parent 1351e3a commit c8e9859

File tree

3 files changed

+36
-36
lines changed

3 files changed

+36
-36
lines changed

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)