2 ms·
It's crazy to me that it's normal now to have like 3-4 compilation/transpilation steps when working on a simple JS-based app. You don't need a bundler. All the
by onion2k 7y ago
It's crazy to me that it's normal now to have like 3-4 compilation/transpilation steps when working on a simple JS-based app.
You don't need a bundler. All the major browsers will run ES6 modules these days (https://caniuse.com/#feat=es6-module https://caniuse.com/#feat=es6-module and https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guid...). We use bundlers because we still target older browsers and a lot of library code isn't in a format that works in browsers yet (and probably never will be in a lot of cases).