-
Notifications
You must be signed in to change notification settings - Fork 578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Huge bundle size without any explicit use, only of antd #198
Comments
Looks like it's a major issue that is fixed in 4.0 |
Please refer to ant-design/ant-design#12011. |
It is all Chinese. It is not possible to refer people to texts they can't read. |
@itayganor There are some comments in English. You can use some help from those, and Google Translate. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there.
In my project I use antd for components and FontAwesome for icons. I never explicitly use icons from Ant Design (Not a single
<Icon/>
component in my project).Despite that, I can see that in my
bundle.js
,@ant-design/icons
is about 0.5MB (!) in size.In order to optimize antd imports, I use
babel-plugin-import
as such:But it doesn't seem to help with reducing the unused icons size taken in my bundle.
The text was updated successfully, but these errors were encountered: