You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to propose to replace the chalk dependency with the smaller and faster picocolors package.
As part of the e18e initiative (ecosystem cleanup), we try to reduce the burden of old or big libs and modernize the ecosystem.
Considering that chalk is used for exactly one style in the console output in this lib, it might be worthwhile to think about geeting rid of it at all :D. chalk alone accounted for a whopping 907.93 GB of traffic last month whenever it got installed as part of dom-testing-library.
The tar size of 13.40Kb doesn't seem much (dom-testing-librarys tar is 434.14KB) but every bit counts :).
Suggested implementation:
Either use picocolor or inline the one styling you have.
In your case it would be a full drop-in repacement.
Describe the feature you'd like:
I want to propose to replace the
chalk
dependency with the smaller and fasterpicocolors
package.As part of the e18e initiative (ecosystem cleanup), we try to reduce the burden of old or big libs and modernize the ecosystem.
Considering that chalk is used for exactly one style in the console output in this lib, it might be worthwhile to think about geeting rid of it at all :D.
chalk
alone accounted for a whopping907.93 GB
of traffic last month whenever it got installed as part ofdom-testing-library
.The tar size of
13.40Kb
doesn't seem much (dom-testing-library
s tar is434.14KB
) but every bit counts :).Suggested implementation:
Either use picocolor or inline the one styling you have.
In your case it would be a full drop-in repacement.
I would be willing to create the PR for you
Describe alternatives you've considered:
Teachability, Documentation, Adoption, Migration Strategy:
The text was updated successfully, but these errors were encountered: