You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying Rspack with Angular, and all the critical features seem to be working. However, the bundle size generated by Rspack is 2x bigger than base builders. Here's the configuration I'm using. The generated main.js file is around 421K in my example against around 250K for Webpack or Esbuild. You can see the build logs here. Do you have an idea why, and how I can get approximatively the same bundle size?
System Info
System:
OS: Linux 5.15 Ubuntu 20.04.6 LTS (Focal Fossa)
CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
Memory: 25.70 GB / 30.98 GB
Container: Yes
Shell: 5.8 - /usr/bin/zsh
Binaries:
Node: 20.11.0 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 10.2.4 - /usr/local/bin/npm
pnpm: 8.15.1 - /usr/local/bin/pnpm
bun: 1.0.22 - ~/.bun/bin/bun
Browsers:
Brave Browser: 121.1.62.165
Chrome: 121.0.6167.184
npmPackages:
@rspack/cli: ^0.6.3 => 0.6.3
@rspack/core: ^0.6.3 => 0.6.3
Details
Hi,
I'm trying Rspack with Angular, and all the critical features seem to be working. However, the bundle size generated by Rspack is 2x bigger than base builders. Here's the configuration I'm using. The generated main.js file is around 421K in my example against around 250K for Webpack or Esbuild. You can see the build logs here. Do you have an idea why, and how I can get approximatively the same bundle size?
Thanks!
Reproduce link
https://github.com/edbzn/ng-rspack/blob/main
Reproduce Steps
Rspack bundle size:
Webpack bundle size:
The text was updated successfully, but these errors were encountered: