-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to parse webpack source URLs, how to work around around? #500
Comments
@lancejpollard I would test the URL creation in isolation. That seems to be your probably moreso any sourcemap issue. Given the stack track, it looks like this is the URL implementation being used. If you can make sure your url string works in the constructor, then you just need to validate your replace algorithm produces the exact right string. Also, be aware that |
URL shouldn't touch the path for unknown schemes (like
|
It looks like it's failing right here:
source-map/lib/util.js
Line 181 in 60adcb0
I have this code for parsing the string sourcemap from a JS file, but it's not working:
As you can see in the example, I tried to replace
webpack://
withhttp://
but it didn't seem to help:How do I get this working, any suggestions? The error I'm getting is:
The JSON looks liek this when I parse the sourcemap in this fashion:
Any help would be greatly appreciated. Thank you.
The text was updated successfully, but these errors were encountered: