News for hackers. Stuff that matters.
Re:JavaScript Modularity Shaming by juandopazo on Wednesday January 07, 2015 @06:25PM (#8854026)
This is an area where the new syntax for modules in EcmaScript 6 does really well. Since exports are static, a dead code elimination tool can figure out which exports from a module are being used and remove the ones that are not being used. As mentioned in comments about how the Closure Compiler works, you can't really do this with purely dynamic code, but you can do it with static imports/exports.

There are no comments on this comment yet.