source-map-unpack
source-map-unpack copied to clipboard
One character is cut off from the file paths
When I unpacked a .js.map file I get these folders:
asics
omposites
However, they should be "basics" and "composites".
https://github.com/pavloko/source-map-unpack/blob/73f626aa992dec2b7c54e1bad5ed6903f8752659/src/index.ts#L54-L58
'webpack://'.length => 10
So the quick fix is probably to change WEBPACK_SUBSTRING_INDEX to 10. However, personally I think I'd prefer if you just did source.replaceAll('://', '/') instead. Not sure if there could ever be another prefix other than webpack://. 🤷