-
Notifications
You must be signed in to change notification settings - Fork 24.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Produce closure externs in Angular distro #14325
Comments
I thought the plan was to let closure optimize symbols across the whole program (RxJS + Angular + App). Would this not significantly increase the output? |
@b-strauss yes, that is what we do already. A single JS bundle containing the parts of angular/rxjs that your app uses. The externs are needed only for:
|
@alexeagle I think this one is already being taken care of by us running the ts code through tsickle before shipping it to npm. can this be closed? |
We have some externs copied manually out of tsickle's output. Ideally we should generate them, but I reviewed them again just now, and they are very trivial (search for *.externs.js in the angular repo) so I think there's nothing more to do. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Tsickle can convert an interface declaration like
to the Closure Compiler externs format, preventing
fieldThatComesAsJson
from being renamed to something shorter by Closure.We just need to hook up the externs generation in
@angular/tsc-wrapped
and include them in the Angular distro (for things like testability API that Protractor calls), and make sure an example user app also generates externs that can be discovered by closure.The text was updated successfully, but these errors were encountered: