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 has been archived by the owner on Jun 14, 2024. It is now read-only.
Thanks for the bugreport and repro case. I do appreciate that Java and JS should do the same thing. It looks like the Gulp and Webpack plugins actually never read the specified externs. For now, you should pass them in as part of the source (annotated with @externs, as you're doing).
However I believe you're relying on undefined behavior. When I change the warning level to DEFAULT or VERBOSE on either JS/Java, I get an error. The DIYgod variable is a const extern—we don't expect it to be declared in your code at all.
There is my configurations and files, the flag
externs
works ingulp-closure-compiler
, but doesn't work inclosure-compiler-js
.gulp configuration:
https://github.com/DIYgod/demo/blob/master/bad-closure-compiler-js/gulpfile.js
externs file
https://github.com/DIYgod/demo/blob/master/bad-closure-compiler-js/externs.js
source file:
gulp-closure-compiler output:
closure-compiler-js output:
There is a minimal demo project of this problem, you can also try it yourself, thanks!
The text was updated successfully, but these errors were encountered: