question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bundle size increased a lot with v5

See original GitHub issue

Reproduction link

https://github.com/ant-design/ant-design/issues/38671#issuecomment-1320572845

Steps to reproduce

upgrade to ant design v5 then build react project

What is expected?

bundle size would be much smaller after dropping moment.js

What is actually happening?

it increased by 55kb

Screenshot 1444-04-25 at 1 08 20 AM

Environment Info
antd 5.0.0
React CRA/ react 18.2.0
System macos 16.0.1
Browser brave

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
Dunqingcommented, Nov 19, 2022

The Antd team will soon optimize the size of the styles generated in cssinjs to reduce the size of js

1reaction
github-actions[bot]commented, Nov 18, 2022

You may look for issues:

  1. 56% #37766

🤖 By issues-similarity-analysis

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Slim Down Your Bundle Size
Here are some potential next steps you can take to decrease your bundle size and load time and increase performance. Consider rewriting libraries...
Read more >
Bundle size increased after upgrading to Angular 6 (from 5)
My build size was at around 7MB+ on 1.7.4 (I know it was big already), but now it's 40.5MB! This is with --prod....
Read more >
Bundle size reduction impossible through modular imports ...
Describe the bug We are trying to reduce the bundle size be refactoring the aws-amplify package to it's modular components.
Read more >
I give up on trying to reduce our angular bundle size - Reddit
Yes, scrutinize your <component-name>.scss files to make sure you aren't repeating things in lots of them. If it is repeated move it to...
Read more >
Migrating to webpack 5 to improve build time and reduce ...
Improve bundle size with better Tree Shaking and Code Generation. ... When migrating to v5 make sure that your webpack 4 build doesn't...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found