What it does
When debugging bundled code, we need sourcemap files to locate the source files instead of the bundled files. This is especially important when the bundled code throws an error. When works with vscode, it allows to click the file path in its terminal to open the source file directly and goto the indicated line.
However, some bundlers (such as webpack) add their own protocols before the file path in the sourcemap, such as
How does it work
It just removes the protocol schema (
Besides the default protocol (