News for hackers. Stuff that matters.
Re:PR converts the Three.js codebase to ES2015 modules by sergiotapia on Saturday July 23, 2016 @11:15AM (#12149710)
Rollup huh, I guess Webpack is now too de jour and will join Gulp in the pit that is Old Javascript.
Re:PR converts the Three.js codebase to ES2015 modules by mrgalaxy on Saturday July 23, 2016 @12:06PM (#12149888)
Actually Webpack and Rollup go hand-in-hand. Rollup just compiles JavaScript ES6 modules into a single file, dealing with only `import` and `export` statements and some tree-shaking. Webpack handles everything else, like ES6-to-ES5 conversion, bundling dependencies, styles and everything else you need to get your code shippable to browsers and node.
Re:PR converts the Three.js codebase to ES2015 modules by sergiotapia on Saturday July 23, 2016 @12:54PM (#12150074)
>Actually Webpack and Rollup go hand-in-hand. Rollup just compiles JavaScript ES6 modules into a single file

Isn't that webpacks gig. Or what that gulp? Or was that browserify? Or was that Jello? Or was that...

Re:PR converts the Three.js codebase to ES2015 modules by draw_down on Saturday July 23, 2016 @01:18PM (#12150158)
Doesn't seem so terrible to me for people to have a choice in what tool they use.
Re:PR converts the Three.js codebase to ES2015 modules by nilliams on Saturday July 23, 2016 @07:05PM (#12151396)
You seem to be complaining that innovation is happening.

If you don't want to deal with the inevitable 'options' that are going to be offered up by a community as large as the JS community, you could 1. pick a smaller community, 2. stick to old tech (e.g. at our company we still have an app running on RequireJS that runs just fine -- RequireJS is over 6 years old). 3. calmly re-assess tech choices every year or so.

Re:PR converts the Three.js codebase to ES2015 modules by sergiotapia on Sunday July 24, 2016 @09:01AM (#12153190)
>You seem to be complaining that innovation is happening.

Not at all. I'm complaining that all of these seemingly similar tools keep superseding each other and solve...what exactly.

Re:PR converts the Three.js codebase to ES2015 modules by nilliams on Monday July 25, 2016 @04:48PM (#12161516)
Why do you think competitiveness of tooling is a bad thing? I understand why it could feel overwhelming, but you really can just pick one (assuming it appears to do what you want) and if it does, stick with it.
Re:PR converts the Three.js codebase to ES2015 modules by onewaystreet on Saturday July 23, 2016 @12:16PM (#12149926)
The only benefit Rollup brings over Webpack is tree-shaking, which will be in Webpack 2.0.
Re:PR converts the Three.js codebase to ES2015 modules by rich_harris on Saturday July 23, 2016 @11:26PM (#12152100)
That's not true. Even without tree-shaking, Rollup produces bundles that are smaller and faster to execute than the equivalent Webpack bundle, because Webpack needs to inline a module loader whereas Rollup moves all the code into the same scope. They're fundamentally different designs.
Re:PR converts the Three.js codebase to ES2015 modules by WayneBro on Saturday July 23, 2016 @12:14PM (#12149916)
I don't know about that. Searching around for conversations surrounding `gulp vs webpack`, people seem generally unconvinced that they can replace gulp with just webpack.
Re:PR converts the Three.js codebase to ES2015 modules by dexwiz on Saturday July 23, 2016 @12:43PM (#12150034)
You can run arbitrary tasks in Gulp. The most common task is build. But that build task is chained together via scripting and plugins.

Webpack only deals with the build. But instead of script, it aims for a more declarative API with config files.

So Webpack only covers the build part of Gulp. Which leaves all of the other scripting capabilities of Gulp. However, a major opinion now is to just write vanilla JS scripts and call them via npm commands and hooks. Gulp has strange api, is callback heavy, and everything needs a Gulp plugin to work. Plain javascript scripts can be closer to normal javascript, and npm can use the tool's CLI directly.