I\'m using ant design library for my react application.
And I\'ve faced with huge imports, that hurts my bundle (currently 1.1 mb in minified version because of ant-
Issue which caused large bundle size has been fixed in Ant Design 4.0.
Quoting from the release announcement.
Smaller size
In antd @ 3.9.0, we introduced the svg icon ([Why use the svg icon?] ()). The icon API using the string name cannot be loaded on demand, so the svg icon file is fully introduced, which greatly increases the size of the packaged product. In 4.0, we adjusted the icon usage API to support tree shaking, reducing the default package size of Antant by about 150 KB (Gzipped).
In order to install Ant Design 4 you have to do following
npm install antd@4.0.0-rc.1
// or in yarn
yarn add antd@4.0.0-rc.1