Addon developers want to make optimizations in which the analysis of one tree (p.e, templates
or js
trees, or both) enables
optimizations on other trees (p.e. styles
or public
).]
Right now ember-cli exposes preprocessTree(type, tree)
and postprocessTree(type, tree)
, but they don't work for this
purpose because
- The
preprocessTree
receives the individual tree types (app
,styles
,templates
,test-support
,public
...), but there is no single three that gives the developers access to all those types simultaneously to perform cross-type operations.