Skip to content

Conversation

@GeoffreyBooth
Copy link
Collaborator

Fix #5086: Don’t generate unnecessary interpolations in JSX tags when the tags contain only here (/* ... */) comments.

@ryansolid can you please verify this against your codebase? And please look at https://github.com/GeoffreyBooth/coffeescript/blob/22ec8d91d81a6f22e8a8fe073b52d69419fe630e/test/csx.coffee#L745-L784 and let me know if the expected output is correct. I copied from your issue.

…tags when the tags contain only here (`/* ... */`) comments
@ryansolid
Copy link

Yes the test output looks correct. I tested this PR against a few examples I had, but admittedly I abandoned this approach of comment annotating a month or so back so I don't have many examples. I didn't hit any issues with what I do have.

Thank you for the fix.

@GeoffreyBooth GeoffreyBooth merged commit b4dceae into jashkenas:master Sep 18, 2018
@GeoffreyBooth GeoffreyBooth deleted the jsx-comments-bug branch September 18, 2018 15:02
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.

2 participants