Let barback tell a transformer which inputs were modified #960
Labels
closed-duplicate
Closed in favor of an existing report
type-enhancement
A request for a change that isn't a bug
<img src="https://avatars.githubusercontent.com/u/46275?v=3" align="left" width="96" height="96"hspace="10"> Issue by munificent
Originally opened as dart-lang/sdk#18301
One of the Angular transformers does whole program analysis using the Analyzer. This is pretty time-consuming. To minimize that, it preserves the resolved state across calls to apply().
When apply() is called, it needs to update that state to take into account the inputs that were modified. To minimize the amount of re-analysis it does it wants to only tell the analyzer about the inputs that were changed. Currently, barback doesn't tell the transformer, so it resorts to reading all of the inputs and comparing their contents as strings (!).
Since barback does know that, it would be good to expose that in the Transform API.
The text was updated successfully, but these errors were encountered: