Well yes I'm using something familiar, to embed the HTML and JS directly. But want to embed a webpacked entity, and have it run through a typescript compiler. But would like something driven from build.rs
In my two cents, the tree shaking is more focus on removing unused exports in ES module at top level.
it's a mixing with Dead code elimination and link time optimization.
according the current situation in bundlers written in JS,there is no "really" winner in my opinion。 webpack or rullup,which one is winner is a very personal thought。
So i think there maybe some similar situation in bundlers written in Rust.
Wepack for web apps, rollup for libraries.
Very much depends on what you're doing, the tools usually aren't good at all of them. There's 1 or 2 other use cases I'm forgetting.