Skip to content
Prev Previous commit
Next Next commit
Update lib/internal/source_map/source_map_cache.js
Co-authored-by: devsnek <me@gus.host>
  • Loading branch information
Benjamin E. Coe and devsnek authored Nov 1, 2020
commit dd0949f019c9cf36f00396bf0f4dad9c5208a649
2 changes: 1 addition & 1 deletion lib/internal/source_map/source_map_cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ function sourcesToAbsolute(base, data) {
data.sources = data.sources.map((source) => {
source = (data.sourceRoot || '') + source;
// An absolute URI does not need to be resolved, return it:
if (source.match(/(?<scheme>^\w+):\/\//)) return source;
if (/(^\w+):/.test(source)) return source;
Comment thread
bcoe marked this conversation as resolved.
Resolved
Comment thread
bcoe marked this conversation as resolved.
Resolved
if (!/^[\\/]/.test(source[0])) {
source = resolve(base, source);
}
Expand Down