News for hackers. Stuff that matters.
Re:Adding JavaScript modules to the web platform by jahewson on Wednesday April 13, 2016 @06:23PM (#11492821)
Nope. If we're talking about tree-shaking (which we should be as it's the entire point in having static modules), you loose everything. That's because require(someRuntimeVariable) can refer to any module. So there's no way to exclude any of the node_modules, or any portions of any of them.

So all code in all modules must be kept. No tree-shaking for you.

There are no comments on this comment yet.