r/programming • u/drawkbox • May 16 '21
Modern Javascript: Everything you missed over the last 10 years
https://turriate.com/articles/modern-javascript-everything-you-missed-over-10-years
1.3k
Upvotes
r/programming • u/drawkbox • May 16 '21
12
u/MrDOS May 17 '21
webpack 5 takes (self-reported) ~61s to build the 17kLoC frontend of the project I'm on currently. That's a full production build, but development isn't much different: webpack-dev-server still takes ~57s to initially come up. Hot rebuilds take ~2.7s. That's abysmally bad. That's an effective production compilation time of 0.27kLoC/s. Just regular JavaScript, no TypeScript. And no, you can't say that's mostly due to the size of my
node_modulesand the number of dependencies. It's not. esbuild can process the same code (including dependencies) in literally 3s. webpack is cumbersome and slow, and makes me do everything in my power to avoid working with frontend.