You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure this is going to be something we can fix. As far as I understand what is going on, the ember-angle-bracket-invocation-codemod is creating a new ElementNode with new AttrNode's which means we have no original source information that we can use to determine what to do.
I think the best path forward is to provide an API for asking ember-template-recast for an existing nodes "whitespace separator" information and another API to set that info on the newly created node.
As we discussed, an API would be great, but in the meantime rewriting the new LinkTo with no whitespace separator is fine. We can release an improvement to this scenario as soon as one becomes available
One of the tests from https://github.com/ember-codemods/ember-angle-brackets-codemod/
Before
ember-template-recast
(correct)After
ember-template-recast
refactor (incorrect)The text was updated successfully, but these errors were encountered: