TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

What's New in Webpack 2

147 pointsby scorchioover 9 years ago

11 comments

nathancahillover 9 years ago
Huge. Between webpack and Babel, JS is quickly progressing towards becoming a powerful language that is easy to write, read and reason about. I'm currently in the process of moving an inherited "minified by hand" codebase to ES6, and the difference is incredible. Not only are linters catching hundreds of previously unknown edge cases and bugs, but the end result is more performant and smaller in file size. It's very satisfying, makes me not mind coding in JS again.
评论 #11018120 未加载
bshimminover 9 years ago
What&#x27;s the current thinking as of 2016 about Browserify versus Webpack? We&#x27;ve been happy Browserify users for a couple of years now, but I&#x27;m drawn to both the code splitting and dynamic expressions parts of Webpack.<p>On the other hand, I&#x27;m not keen on introducing more complexity or changing things just to be &quot;fashionable&quot;, and Browserify, Babel, and Gulp do work together reasonably well for us (though I didn&#x27;t much enjoy getting it all working in the first place, and I&#x27;m always nervous about updating any of them).
评论 #11018891 未加载
评论 #11018430 未加载
评论 #11018606 未加载
评论 #11018480 未加载
octrefover 9 years ago
What&#x27;s needed for Webpack 2: better documentation.
评论 #11019364 未加载
评论 #11019413 未加载
julenxover 9 years ago
Hm, I&#x27;m not sure about having to pull in a Promise polyfill to support code splitting (`require.ensure()`) in IE11... If I&#x27;m already using a promises library from X, would it be possible to somehow instruct webpack use that? Does that make sense? Am I missing something?
评论 #11019291 未加载
评论 #11019486 未加载
sotojuanover 9 years ago
For me the big thing in this version is tree shaking. I think it will change usage of JS stuff more than most people think. For example, I will use Cycle more because currently I feel bad importing all of RxJS for my toy projects.
评论 #11019921 未加载
sandGorgonover 9 years ago
has anyone used systemjs + jspm here ? I inherited a codebase using jspm (due to the override registry system that works great with legacy javascript packages - like Handsontabe) and am wondering about webpack.
评论 #11018397 未加载
评论 #11018371 未加载
评论 #11018407 未加载
评论 #11018381 未加载
rco8786over 9 years ago
I&#x27;m really curious about the decision to support es6 modules here. Seems like Webpack is stepping into Babel&#x27;s territory, but I&#x27;m not sure to what end?
ry_ryover 9 years ago
Huh, they&#x27;ve pulled es6 compilation in, away from babel?<p>It&#x27;s early in the morning here so my pre-coffee brain might be terrible, but did they say which compilation engine they were using for es6?
评论 #11018129 未加载
quaffapintover 9 years ago
For people in corporate environments that can&#x27;t run webpack&#x2F;browserify are there any standalone tool alternatives?
sdnguyen90over 9 years ago
Is tree shaking still planned for this version?
评论 #11018266 未加载
k__over 9 years ago
I tries cycle.js the other day and had to use some webpack.<p>Seems like npms default webpack Version is some 2.0 beta?!<p>Somehow requires in scoped modules didn&#x27;t work with it ans I searched about n hour for an solution till I saw that the webpack devs seem to consider a beta a good &#x27;default&#x27; Version....<p>Going back do 1.12.12 helped.<p>I love npm D:
评论 #11019128 未加载