Skip to content

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

Merged
rwjblue merged 14 commits intoember-cli:masterfrom
chriseppstein:extract-template-compiler-method
Jun 25, 2020
Merged

Move template compiler creation to a method on the addon#527
rwjblue merged 14 commits intoember-cli:masterfrom
chriseppstein:extract-template-compiler-method

Conversation

@chriseppstein
Copy link
Copy Markdown
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.

Comment thread lib/ember-addon-main.js Outdated
@chriseppstein
Copy link
Copy Markdown
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
Copy Markdown
Member

rwjblue commented May 18, 2020

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

Comment thread README.md Outdated
Comment thread lib/template-compiler-plugin.d.ts Outdated
Comment thread lib/ember-addon-main.js Outdated
@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