The size of bundle.js is quite large with 884kB. In my version I've managed to reduce the size to 129KB in release mode, but the config is not very nice:
https://github.com/bwasty/rust-wasm-webpack-template/blob/f0d3cf5437333700baf18f46f825594e9105271c/webpack.config.js#L33-L85
I don't fully understand how all those dependencies are pulled in - do you have an idea how to do this better?
Note: I'd have opened this on rust-wasm-loader, but the issue tracker is switched off.
The size of
bundle.jsis quite large with 884kB. In my version I've managed to reduce the size to 129KB in release mode, but the config is not very nice:https://github.com/bwasty/rust-wasm-webpack-template/blob/f0d3cf5437333700baf18f46f825594e9105271c/webpack.config.js#L33-L85
I don't fully understand how all those dependencies are pulled in - do you have an idea how to do this better?
Note: I'd have opened this on rust-wasm-loader, but the issue tracker is switched off.