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
Closure Compiler Advanced Compilation and Externs Generation #4014
Comments
Added Area-Dart2JS, Triaged labels. |
Added this to the Later milestone. |
Issue #4489 has been merged into this issue. |
Removed this from the Later milestone. |
Added this to the Later milestone. |
Added TriageForM5 label. |
Removed Type-Defect, TriageForM5 labels. |
This comment was originally written by brrkzr...@gmail.com I found out that, in a small project, calling dart2js with the '--minify' option and further compacting the result by applying Closure Compiler with the '--compilation_level SIMPLE_OPTIMIZATIONS' option produces code that is similar to using the ADVANCED_OPTIMIZATIONS option. At least with the dart2js that comes with Dart Editor 0.6.5_r25017. |
The Closure Compiler should not be able to further optimize minified dart2js output. If it can, it means that there is a bug in dart2js that it doesn't optimize well enough. |
This comment was originally written by brr...@gmail.com Closure removes line breaks and the comment at the beginning. In my case the output of dart2js --minify is 109982 bytes. After Closure it becomes 102362 bytes. |
Most of the line breaks dart2js emit in minified will have to be replaced by semicolons. A line break is one byte, and a semicolon is one byte. So the difference shouldn't be so large, but it is as there are still some superfluous line breaks in dart2js output. That's a bug in dart2js. |
Removed this from the Later milestone. |
Removed Oldschool-Milestone-Later label. |
This issue was originally filed by wessels...@gmail.com
What steps will reproduce the problem?
What is the expected output?
Uncompressed and unminifiable JavaScript, not suitable for production.
What do you see instead?
Wish to see a clean and tidy JavaScript Output that can easily and automatically be compiled with Google Closure in Advanced Mode.
It would also be great to have a way to generate Externs for the Google Closure Compiler.
The text was updated successfully, but these errors were encountered: