ng-zorro-antd
ng-zorro-antd copied to clipboard
Bundle bloated with icons and i18n
Reproduction link
https://github.com/kordis-leitstelle/kordis/pull/583
Steps to reproduce
Build the project with prod config nx build spa --prod --stats-json, check the bundle size e.g., with the webpack bundle analyzer.
What is expected?
A bundle without the icons (or with the necessary icons), and, if used with the icon module, ONLY with the included icons.
What is actually happening?
The bundle is extremely bloated with the i18n chunk and the icons (1mb in total)
| Environment | Info |
|---|---|
| ng-zorro-antd | 17.0.1 |
| Browser | Chrome |
Like this, the library is unusable for us, since the bundle size is just too big (best practice is to throw an error during the build if it exceeds 1mb)