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
{{ message }}
This repository was archived by the owner on Apr 4, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 4, 2025. It is now read-only.
Activity
filipesilva commentedon Oct 17, 2017
It should, yes. Thank you for the report and repro. Will investigate.
filipesilva commentedon Oct 17, 2017
Ok I know what's going on. The transform that adds that pure comment is prefix-functions.
But we only apply it to libraries we know are safe: https://github.com/angular/devkit/blob/master/packages/angular_devkit/build_optimizer/src/build-optimizer/build-optimizer.ts#L80-L92
So your user code does not get it. Perhaps we should have a flag to force it...
clydin commentedon Oct 19, 2017
Something else to note is that the annotation is only relevant if the component is never used within the application.
hansl commentedon Oct 19, 2017
@clydin @filipesilva Was this fixed by my fix from yesterday?
filipesilva commentedon Oct 24, 2017
@hansl no, this is different. It needs a forced flag. I'm putting up a PR for it soon.