ant-design / ant-design-colors

:art: Color Palettes Calculator of Ant Design
https://ant.design/docs/spec/colors
MIT License
652 stars 79 forks source link

feat: @ctrl/tinycolor treeshaking #74

Closed 07akioni closed 3 years ago

07akioni commented 3 years ago

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[bot] commented 3 years ago

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

new alerts:

coveralls commented 3 years ago

Coverage Status

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

07akioni commented 3 years ago

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