Earlier quoted context omitted.
Okay, so rustc is compiling rust to machine code. Here we have some advanced version of JavaScript (es7?) going through a series of compilations, asset extraction, tree shaking, dependency graphs that are 10000+ packages long etc. The solutions rust and cargo choose (like having a decent standard library to reduce deps) are all better. Rust is fast and worth paying a compilation prise for, is it worth it in JS so we…
Yes good luck shipping that main.rs to a web browser. The problem that Webpack solves is performance optimization in addition to what Rust offers: - writing in a higher-level language: "write modern code and ship to IE 5" is the same as "write in Rust and ship to x64" - take a bunch of files and make 1 or 2 out of it. Nobody stops you from loading jQuery and 3 plugins in a script tag and call it a day. Webpack exists…
Maybe you can justify the complexity in JS projects but I find it excessive.