3 ms·
Dead code elimination is only part of the benefits of Closure. The advanced compilation mode does a lot to optimize the final JS.
by hellofunk 10y ago
Dead code elimination is only part of the benefits of Closure. The advanced compilation mode does a lot to optimize the final JS.
- bjz_ 10y agoI haven't had much luck the the advanced setting for Elm - seems to optimise too much away, and I get undefined field errors when I try to run the code.
- hellofunk 10y agoThat's because Elm does not output JavaScript in the standardized format for Closure.
- Skinney 10y agoClosure doesn't really have a standardized format. It does, however, not like that you mix string and dot access for object (obj['str'] vs obj.str), which Elm does a couple of places.