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-
Looking at the docs https://ant.design/docs/react/getting-started#Import-on-Demand there is a recommedation to import individual components on demand. So, you can try and replace
import { Button} from 'antd'
with
import Button from 'antd/lib/button'