danvk / source-map-explorer

Analyze and debug space usage through source maps
Apache License 2.0
3.81k stars 119 forks source link

Extra levels within custom URI scheme #215

Open bbrk24 opened 2 years ago

bbrk24 commented 2 years ago

Description source-map-explorer splits up consecutive slashes in custom URI schemes. For example, a folder webpack://src/ is divided into webpack:, ` (empty string), andsrc`.

Steps to reproduce After building a CRA project with custom CSS, run source-map-explorer 'build/static/css/*.css'.

Files to reproduce The relevant part is this section from the .css.map file:

"sources":["main.a44e33ca.chunk.css","webpack://src/components/Header/Header.css","webpack://src/index.css"]

Expected behavior The URI scheme is either removed entirely or left intact.

Environment

Additional context However CRA does their source mapping, this only happens for CSS, not JS.

bbrk24 commented 2 years ago

It seems like #137 may be a misinterpretation of this issue.