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

Missing newline at end of es6-promise.js #244

Closed
geroyche opened this issue Oct 4, 2016 · 6 comments
Closed

Missing newline at end of es6-promise.js #244

geroyche opened this issue Oct 4, 2016 · 6 comments

Comments

@geroyche
Copy link

geroyche commented Oct 4, 2016

We're using concatenation tools to merge our bower dependencies. The missing newline at the end of es6-promise.js breaks this process (the subsequent file starts with a comment indicator /*! which gets concatenated to the comment //# sourceMappingURL=es6-promise.map ), making the next line invalid

@stefanpenner
Copy link
Owner

@geroyche which concatenator?

@geroyche
Copy link
Author

geroyche commented Oct 4, 2016

Grunt contrib concat.
Not sure it's really relevant though.
Adding an enter character at the end of the file does fix the issue.

@stefanpenner
Copy link
Owner

Not sure it's really relevant though.

I was curious, as most of the concat scripts I have worked on explicitly add a newline do to this ambiguity.

@geroyche
Copy link
Author

geroyche commented Oct 4, 2016

Ah, ok :)

@stefanpenner
Copy link
Owner

stefanpenner commented Oct 4, 2016

@geroyche I believe this to be a bug in grunt contrib concat, but I can also make this code more resilient. How about a trade, open an issue there so it is on their radar and I will make our concatenator more defensive.

@stefanpenner
Copy link
Owner

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

No branches or pull requests

2 participants