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

Lost comment #1245

Closed
javysun opened this issue Aug 3, 2016 · 2 comments
Closed

Lost comment #1245

javysun opened this issue Aug 3, 2016 · 2 comments
Labels

Comments

@javysun
Copy link

javysun commented Aug 3, 2016

In the begining

a.b/*This comment will be lost*/.c = /*bbb*/ function() {
    /*ccc*/
    alert(1);
};

After parse

a.b.c = /*bbb*/ function() {
    /*ccc*/
    alert(1);
};
@kzc
Copy link
Contributor

kzc commented Aug 6, 2016

Related issue: #754

Could be solved by introducing a comments_after property on the parse token that would work much like comments_before already does:

https://github.com/mishoo/UglifyJS2/search?utf8=✓&q=comments_before

@alexlamsl
Copy link
Collaborator

Closing as duplicate of #88

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants