News for hackers. Stuff that matters.
Re:Getting Started with Webpack 2 by rich_harris on Wednesday November 02, 2016 @08:40AM (#12854055)
Rollup's gains come mainly from the way it combines modules into a single scope, rather than wrapping them in functions and shipping a module loader with the bundle. It's not uncommon to see parse/evaluate time plummet when switching to Rollup because of this, which is often more important than the number of bytes.

However Rollup currently lacks a lot of features that make Webpack a good choice for large and complex apps.

You can get a feel for the code Rollup generates at http://rollupjs.org.

Re:Getting Started with Webpack 2 by boobsbr on Wednesday November 02, 2016 @05:52PM (#12859699)
Could you please expand on:

> it combines modules into a single scope, rather than wrapping them in functions and shipping a module loader with the bundle

I'm really interested, I got into JS development this year and have no idea of the internals of bundlers/packagers.

Re:Getting Started with Webpack 2 by thelarkinn on Wednesday November 02, 2016 @09:06AM (#12854247)
Rich couldn't have said better !!!!