-
-
Notifications
You must be signed in to change notification settings - Fork 430
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
Remove sourceMappingURL from output #12
Comments
I had originally thought about removing the sourceMappingURL but, as you said, it worked in Chrome so I didn't bother. I'm not an expert in the sourcemap specification but one potential issue did occur to me: will removing the content from the source without updating the associated sourcemap cause problems. Do you know offhand? |
This is safe. The sourcemap data itself will not have a line mapping for the Ideally, typescript would have an option to suppress the comment line, but removing it should work for now. |
I am not 100% certain but I don't think that removing "# sourceMappingURL=" would cause a problem, because:
I have been working with my solution and I have not experienced any problems. If you really do not want to change the length of the contents, you could replace "# sourceMappingURL=" with some random characters or underline characters, or whatever. By the way, my single line solution is a bit of a hack, because it could remove any "# sourceMappingURL=" text from the file. You might want to improve it by only changing the last line of the contents. |
Sorry for the delay on this. I implemented it last night but I'm trying to get a couple more things in before pushing/publishing. |
Thanks a ton for the report and for the fix! This has been published in v0.3.3. |
Reported by @schlaup in #8. Opening as a new issue here.
From @schlaup:
The text was updated successfully, but these errors were encountered: