-
Notifications
You must be signed in to change notification settings - Fork 1.2k
TRANSPILE_ONLY
mode
#4231
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
Comments
Rahul's agreed to look into how hard this will be to accomplish as part of investigating a related polyfill problem. |
Aside, would it be possible to get an equivalent of https://google.github.io/closure-library/api/goog.html for this repo, and possibly forward the old page to this (or at least put up a note that it is archived/deprecated)? I'm looking at https://github.com/google/closure-compiler/blob/master/lib/base.js as the "modern" version of that file. Would it be fair to say that TRANSPILE_ONLY is in some ways a "lighter" version of BUNDLE, and in other ways a "heavier" version of BUNDLE? That is:
|
@niloc132 s/goog.declare/goog.define/ edit done |
Perhaps this is the appropriate place to mention that |
That is a good point. I think what we would want from this compilation mode is roughly:
Given this, perhaps it would be easier to think of this and implement it by starting with |
Summary
Add a
TRANSPILE_ONLY
mode that does the following:goog.define()
goog.module()
--language_out
level, including the addition of polyfillsBackground
WHITESPACE_ONLY
mode is borderline useless, because what it means is very badly defined. In many cases it results in output code that will not run. Several examples can be seen in this issue search.https://github.com/google/closure-compiler/issues?q=is%3Aissue%20state%3Aopen%20WHITESPACE_ONLY
On the other hand
SIMPLE_OPTIMIZATIONS
does much more than developers often want when they're "just" trying to get an executable version of their project as fast as possible for testing and debugging.The text was updated successfully, but these errors were encountered: