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

feat: @ctrl/tinycolor treeshaking #74

Merged
merged 3 commits into from
Feb 9, 2021

Conversation

07akioni
Copy link
Contributor

@07akioni 07akioni commented Feb 9, 2021

Import functions from files instead of the index to make the bundle smaller.

I've test it with rollup, the output is treeshakable. About 20 kb less.

Before
image

After
image


Remove ts-jest since it won't transform modules from node_modules even transfromIgnorePatterns is set. Current config is the official way from jest to support typescript.

https://jestjs.io/docs/en/getting-started#using-typescript

@lgtm-com
Copy link

lgtm-com bot commented Feb 9, 2021

This pull request introduces 1 alert when merging 4af64a7 into aec928b - view on LGTM.com

new alerts:

  • 1 for Unneeded defensive code

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 99.145% when pulling 517c085 on 07akioni:tc-treeshake into aec928b on ant-design:master.

@07akioni
Copy link
Contributor Author

07akioni commented Feb 9, 2021

Coverage 应该没降,应该是因为行数涨了= =

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