News for hackers. Stuff that matters.
Re:JavaScript Modules by cwmma on Wednesday July 02, 2014 @10:07AM (#7977029)
> The dependencies are static, so you can't do stuff like `if(Math.random() < .5) { require('foo') } else { require('bar') }`. That is a good thing. A lot of people at this point agree that a statically analyzable dependency graph is a huge win.

yeah but the 80% solution of loading them both statically but only executing them when the require is run works ridiculously well in practice.

There are no comments on this comment yet.