-
Notifications
You must be signed in to change notification settings - Fork 25.5k
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
build: update to google-closure-compiler@20171023.0.1 #20321
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's see if it's green - do we need to change closure.conf?
6ba5c83
to
c08340a
Compare
@alexeagle It went green after I added externs for some of Angular's internal dependencies. I have noticed that these externs are sometimes needed, but not always. I guess it depends on whether or not CC encounters these symbols in the source during compilation. Externs:
|
The alternative is |
@thelgevold |
|
@thelgevold can you think of a case where we want Closure Compiler to find "issues from undeclared variables", that the earlier TS tooling would not have found? Given that, my guess is that |
@@ -0,0 +1,9 @@ | |||
/** | |||
* @fileoverview This is an externs file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We definitely don't want users to have to own such a file. If we decide to pass externs, they should ship with Angular.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to resolve the externs question...
added externs remove externs
c08340a
to
f4fe90c
Compare
@alexeagle Since TS will always run before this, I agree that |
@@ -9,6 +9,7 @@ | |||
--warning_level=QUIET | |||
--dependency_mode=STRICT | |||
--rewrite_polyfills=false | |||
--jscomp_off=checkVars |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, we really should add comments here, but I don't know of a syntax to do so.
If you feel like tackling google/closure-compiler#2413 it would be a nice enhancement
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
added externs remove externs PR Close #20321
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. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
Upgrading Closure compiler to the latest version
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information