Skip to content

Commit

Permalink
Match webpack sourcemap relative paths
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
isaacl committed Nov 3, 2020
1 parent 1351e3a commit c8e9859
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ function normalizeSourceMapForRuntime(map, loaderContext) {
path.relative(loaderContext.rootContext, absoluteSource)
);

return `webpack://${contextifyPath}`;
return `webpack://./${contextifyPath}`;
});
}

Expand Down
Loading

0 comments on commit c8e9859

Please sign in to comment.