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

Avoid triggering ember.js#19392 with synthetic attr nodes #270

Merged
merged 2 commits into from
Mar 23, 2022

Conversation

dfreeman
Copy link
Member

Starting with the version of @glimmer/syntax that landed in Ember 3.25, synthetic attributes added to an element node trigger a warning because their loc is treated as a real source location at offset 0, and the content there typically won't match the name of the attribute being emitted.

Ultimately it would be great to fix that, but given that the fix is unlikely to get backported to all affected Ember versions, we're including a workaround here in the meantime.

@dfreeman dfreeman added the bug label Mar 23, 2022
@dfreeman dfreeman force-pushed the avoid-template-compilation-warnings branch from a69da39 to b3aa7e7 Compare March 23, 2022 14:23
@dfreeman dfreeman merged commit c33a8f7 into master Mar 23, 2022
@dfreeman dfreeman deleted the avoid-template-compilation-warnings branch March 23, 2022 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant