Skip to content
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

fix: Fixed code that increased package size if tree shaking is disabled #24847

Merged
merged 1 commit into from
Jun 8, 2020

Conversation

DavidSichau
Copy link
Contributor

With the merged pull request #21752 bundle size was decreased even if tree shaking was disabled. The pull request #24041 destroyed these feature.

With this pull request this is fixed again.

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / documentation update
  • Demo update
  • Component style update
  • TypeScript definition update
  • Bundle size optimization
  • Perfermance optimization
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Other (about what?)

🔗 Related issue link

#21752
and
#24041

💡 Background and solution

This enables only the import of required icons instead of whole icon library even if tree shaking is disabled.

📝 Changelog

No change on user site.

Language Changelog
🇺🇸 English
🇨🇳 Chinese

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

@DavidSichau DavidSichau changed the title Fixed code that increased package size if tree shaking is disabled fix: Fixed code that increased package size if tree shaking is disabled Jun 8, 2020
@ant-design-bot
Copy link
Contributor

ant-design-bot commented Jun 8, 2020

@ant-design-bot
Copy link
Contributor

ant-design-bot commented Jun 8, 2020

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jun 8, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 13e4d56:

Sandbox Source
antd reproduction template Configuration

@codecov
Copy link

codecov bot commented Jun 8, 2020

Codecov Report

Merging #24847 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #24847   +/-   ##
=======================================
  Coverage   99.27%   99.27%           
=======================================
  Files         365      365           
  Lines        7299     7299           
  Branches     2041     2042    +1     
=======================================
  Hits         7246     7246           
  Misses         53       53           
Impacted Files Coverage Δ
components/transfer/ListItem.tsx 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 862488b...13e4d56. Read the comment docs.

@afc163 afc163 merged commit af5ff52 into ant-design:master Jun 8, 2020
@07akioni 07akioni mentioned this pull request Jun 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants