-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
Summary
Add a TRANSPILE_ONLY
mode that does the following:
- Error checking as usual
- Code changes necessary to generate running code, including:
- handling
goog.define()
- handling
goog.module()
- transpiling down to the requested
--language_out
level, including the addition of polyfills
- handling
- Otherwise leave the code unchanged. No optimizations. No renaming.
Background
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.
sbc100 and walkingeyerobotwalkingeyerobot
Metadata
Metadata
Assignees
Labels
No labels