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
The template compiler itself would need to provide this (something i have wanted for ages). Unfortunately some templates may include {{component dynamicName}} or {{context.component}} the later may delegate the component to specify such dependencies. the former ... well im sure something creative could be used.
I would recommend this instead by opened as an RFC to the ember repo, as the ember repo currently provides the actual template compiler. This project merely integrates it with broccoli + ember-cli.
A second RFC, eg. tree-shaking to ember-cli is likely fine, i can say that is a goal we have, but no timeline as of yet.
Is there a way to emit or list the used components in a template?
Basically, in my application that has an addon with 1000 components, I only want to include the components that I actually use in the application.
My thought is that if I can get a list of components used, then I can filter the tree in addon hooks.
I see in the compiled form of a template:
Is there any registry of used components?
When and where would that be available at build time?
This may be related to #47
Also related: http://discuss.emberjs.com/t/how-to-include-only-a-subset-of-the-files-from-an-addon/9099
The text was updated successfully, but these errors were encountered: