3 ms·
Explain to me why do we web app need bundlers?
by xchaotic 9y ago
Explain to me why do we web app need bundlers?
- GijsjanB 9y agoI long for the day I can use browser native import to retrieve all my modules and deps, but at this point it doesn't resolve node_modules and that makes it unusable to me and the reason I am using a bundler.
- davidnagli 9y ago2 reasons: 1. Browsers don't support JS modules 2. It's more efficient for browsers to request a single file than a bunch of smaller modules. So even if you use something like browserify, which dynamically loads modules in the browser, you end up with much longer load times because of all the overhead with each HTTP request.