News for hackers. Stuff that matters.
Re:ECMAScript 2016+ in Firefox by moron4hire on Wednesday February 22, 2017 @07:36AM (#13704997)
Even if the browsers support modules, you still will want to generate a bundle, because loading modules on the fly would require lots of tertiary HTTP requests.
Re:ECMAScript 2016+ in Firefox by shadowmint on Wednesday February 22, 2017 @07:42AM (#13705024)
I was under the impression HTTP/2 would make this concern irrelevant... but I'm no expert on the subject. I suppose its a valid point.

I just don't see what the point in having support for additional js language features natively is if you're forced to use a tranpiler regardless.

If you supported only, say, 50% of ES2016, and modules you could plausibly deliver unbundled native ES6; it'd be pretty cool; but modules aren't just a random feature from the pot; there is literally no serious modern web application that doesn't use them.

So... I'm struggling to see the ES2016 feature complete map (without modules) as really meaningful for anyone, practically.

Re:ECMAScript 2016+ in Firefox by vmasto on Wednesday February 22, 2017 @08:08AM (#13705145)
HTTP/2 won't make a serious difference in regards to that, bundling will always be required. Also minifying will always be required, so there's always going to be a build step anyway.
Re:ECMAScript 2016+ in Firefox by jakub_g on Wednesday February 22, 2017 @05:34PM (#13709890)
Minifying yes but why bundling?

https://hpbn.co/http2/#request-and-response-multiplexing

HTTP2 takes care of loading files via multiplexing, and ES6 modules take care of loading JS in proper order, no need to bundle AFAIU.

Re:ECMAScript 2016+ in Firefox by vmasto on Thursday February 23, 2017 @08:20PM (#13719937)
Sorry for the late reply. Multiplexing is not a panacea, there's still some overhead, and even if there wasn't there's still a point where you start to lose lot of performance by limiting gzip compression (the smaller the file the less efficient the compression is).

You can read more about why we'll always need a bundling step at the following links:

http://engineering.khanacademy.org/posts/js-packaging-http2....

https://medium.com/@asyncmax/the-right-way-to-bundle-your-as...

https://medium.com/webpack/webpack-http-2-7083ec3f3ce6#.74q6...

Re:ECMAScript 2016+ in Firefox by moron4hire on Wednesday February 22, 2017 @08:08AM (#13705146)
Transpiling also drastically increases the size of code. Having these features natively could significantly reduce bundle size.