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

Move template compiler creation to a method on the addon #527

Merged

Conversation

chriseppstein
Copy link
Contributor

@chriseppstein chriseppstein commented Apr 20, 2020

This is so it can be overridden by plugins (e.g. CSS Blocks) that need access to the input and output trees.

Relevant to this patch:

Also, I added some typescript types for the template compiler. I can split that off into a separate PR if you want.

Tests? I can add one but I'm not sure exactly what you'd like for me to test. It seems like maybe just a code comment is sufficient.

lib/ember-addon-main.js Outdated Show resolved Hide resolved
@chriseppstein
Copy link
Contributor Author

I've upgraded to broccoli-persistent-filter 3.0 which allows us to pick up the proper typescript definitions for that plugin now and use it here.

@rwjblue
Copy link
Member

rwjblue commented May 18, 2020

Landed the broccoli-persistent-filter bump in #557.

README.md Outdated Show resolved Hide resolved
lib/template-compiler-plugin.d.ts Outdated Show resolved Hide resolved
lib/ember-addon-main.js Outdated Show resolved Hide resolved
@rwjblue rwjblue merged commit 3f7c5fd into ember-cli:master Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants