Skip to content

lib: don't match `sourceMappingURL` in strings

Prior to this change sourceMappingURL in string where being matched by the RegExp which caused sourcemaps not be loaded when using the --enable-source-maps flag. This commit changes the RegExp to match the last occurrence.

Fixes: https://github.com/nodejs/node/issues/44654

Merge request reports

Loading