Skip to content
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

Move sourceMappingURL to last line #5237

Closed
wants to merge 1 commit into from
Closed

Move sourceMappingURL to last line #5237

wants to merge 1 commit into from

Conversation

mohd-akram
Copy link

@mohd-akram mohd-akram commented Oct 10, 2019

This is more in line with the spec which says "the generated code may include a line at the end of the source, with the following form: //# sourceMappingURL=<url>" and "there exists a //# sourceURL comment in the generated code". It also looks better since the sourceMappingURL is very long. Also, add a trailing newline. This was motivated by mishoo/UglifyJS#3441.

@GeoffreyBooth
Copy link
Collaborator

I guess? Would this be a breaking change for anyone?

@vendethiel
Copy link
Collaborator

Going on a limb here - it's been a few years - but wasn't there some I.E. bug if the last line contained some specific characters that could pose an issue? Maybe we don't need to care, to be fair...

@mohd-akram
Copy link
Author

Is this good to merge?

@mohd-akram
Copy link
Author

Any update on this?

@GeoffreyBooth
Copy link
Collaborator

I don’t know what to do with this. I worry that it could break some people, like bundlers that expect the current output, and I don’t really see why the change is needed.

@mohd-akram mohd-akram closed this Jun 28, 2023
@mohd-akram mohd-akram deleted the move-sourcemapurl branch June 28, 2023 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants