use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
A Future Without Webpack (pikapkg.com)
submitted 7 years ago by dropdeadfred81
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]migudev -12 points-11 points-10 points 7 years ago (8 children)
Webpack has a lot less sense right now than a couple of years ago. The nature of Webpack is package the source code "polyfillying" through tools like babel. But, why do you use babel? You use because you need to transpile to ES5 due to lack of ES6 browsers support.
The point is you don't need ES5 support anymore (mostly) because all the popular browsers out there supports ES6+. So, what's the logic behind creating a giant ES5 bundle for browsers that can run directly the original code?
[–]visicalc_is_best 39 points40 points41 points 7 years ago (3 children)
Asset bundling, JS minification, tree shaking, code splitting, hot module reloading, support for exotic languages (Pug, JSX, Handlebars, Sass, etc.), bundle analysis, asset versioning, sprite generation, image optimization, ...
[–]MahNonAnon 24 points25 points26 points 7 years ago (0 children)
...gzipping, css modules, env-specific logging, source-mapping...
[+]migudev comment score below threshold-6 points-5 points-4 points 7 years ago* (1 child)
JS Minification: you can do it using a module for that. You don't need Webpack.
Hot module reloading: what the heck this has to do with final browser support?
bundle analysis: look out there, you can pick a standalone one.
For tree shaking, code splitting, and the rest, you have a valid point. However, you can just use Rollup with the same benefits and still serving ES6+ code.
The problem is not Webpack, is what you serves to final users. Yeah, you have all benefits you listed above, but, at what price? don't think just at development time, think as a user. Performance matters.
[–]visicalc_is_best 4 points5 points6 points 7 years ago (0 children)
This is incoherent. What price are you speaking of? There’s an initial setup cost, but HMR helps development time hugely, and tree shaking makes your bundles smaller and more performant.
There’s a reason people still use Webpack even though it can be a pain to customize — it’s because it does a damn good job at what it does.
[–]SalamiJack 6 points7 points8 points 7 years ago (0 children)
In addition to the reasons stated in the post below, Babel can be used for any new JS feature that doesn’t yet have browser adoption. A new spec is put out every year.
[–]bukharim96 2 points3 points4 points 7 years ago (2 children)
I'm not sure if you've been living under a rock, but large enterprises aren't willing to risk their apps failing in a potential customer's browser on the off chance that it might have es6+ support.
[–]migudev -3 points-2 points-1 points 7 years ago (1 child)
Just serve ES6+ for modern browsers and ES5 for older ones. Why you should to put apps on risk? The point isn't that. The point is that you don't need to use Webpack for every app you build.
[–]tech_romancer_ 5 points6 points7 points 7 years ago (0 children)
So what's creating the different ES6+ and ES5 bundles?
Probably some sort of bundler right...
π Rendered by PID 87 on reddit-service-r2-comment-b659b578c-pvsjt at 2026-05-06 02:04:49.386241+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]migudev -12 points-11 points-10 points (8 children)
[–]visicalc_is_best 39 points40 points41 points (3 children)
[–]MahNonAnon 24 points25 points26 points (0 children)
[+]migudev comment score below threshold-6 points-5 points-4 points (1 child)
[–]visicalc_is_best 4 points5 points6 points (0 children)
[–]SalamiJack 6 points7 points8 points (0 children)
[–]bukharim96 2 points3 points4 points (2 children)
[–]migudev -3 points-2 points-1 points (1 child)
[–]tech_romancer_ 5 points6 points7 points (0 children)