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

[BUGFIX release] Expose @glimmer/syntax from template compiler privately for use in Embroider. #19426

Merged
merged 1 commit into from
Feb 25, 2021

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Feb 24, 2021

This enables Embroider to remove some gnarly hacks (or at least only resort to them when operating on older Ember).

Closes #18095

@rwjblue rwjblue force-pushed the expose-glimmer-syntax-from-template-compiler branch from 1fa1192 to 15ae641 Compare February 25, 2021 22:16
@rwjblue rwjblue requested a review from pzuraq February 25, 2021 22:17
…ately for use in Embroider.

This enables Embroider to remove some gnarly hacks (or at least only
resort to them when operating on older Ember).
@rwjblue rwjblue force-pushed the expose-glimmer-syntax-from-template-compiler branch from 15ae641 to b46eee7 Compare February 25, 2021 22:25
@rwjblue rwjblue merged commit 9295b59 into master Feb 25, 2021
@rwjblue rwjblue deleted the expose-glimmer-syntax-from-template-compiler branch February 25, 2021 22:45
@ef4
Copy link
Contributor

ef4 commented Feb 26, 2021

Thanks! Haven't had a chance to try this yet. I think we have been broken under canary for a little while due to template-compiler distribution changes, this gives me a stable target to switch to.

@rwjblue
Copy link
Member Author

rwjblue commented Feb 26, 2021

I think we have been broken under canary for a little while due to template-compiler distribution changes

Yes, that is precisely why I did this 😉. Seemed better than just fixing the monkey patch...

@ef4 - The test added here is basically exactly what we want to do.

rwjblue added a commit to rwjblue/embroider that referenced this pull request Feb 26, 2021
New API exposed in emberjs/ember.js#19426
enables us to avoid munging with the template compiler internals.
rwjblue added a commit to rwjblue/embroider that referenced this pull request Feb 26, 2021
This API was introduced in
emberjs/ember.js#19426 and allows us to avoid
Ember's own AST transform plugins.

The changes here are safe across all Ember version ranges (in both cases
applyTransforms avoids running Ember's own transforms).
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.

Improve template-compiler API for use in embroider
2 participants