3 ms·
You get a ton of other benefits from buying into a webpack-style build system though: - Modules - TypeScript - Newer JavaScript syntax - SASS compilation - Cod
by nicoburns 8y ago
You get a ton of other benefits from buying into a webpack-style build system though:
- Modules
- TypeScript
- Newer JavaScript syntax
- SASS compilation
- Code splitting
etc.
For me, it's hard to imagine a medium/large sized JS project without using some kind of module system. And once you've setup the build system for that, you might as well use all of the other features that it enables.
- vorpalhex 8y agoYou can get modules now in many browsers, as well as the latest JS syntax, without needing any build step. Code splitting/vendoring has changed with HTTP2, and will continue to change as HTTP3 comes along. SASS compilation, and if you choose to use TypeScript, will require a build step, but at least the SASS side of that is very easy and straight forward by itself.
- tracker1 8y agoYou're still missing a few of the finer points of stage 0-3 optiosn for babel. Also, that bloats out to a lot of requests with full round-trip time, and no real good server solutions for bundling via HTTP2/3 push yet.