-
-
Notifications
You must be signed in to change notification settings - Fork 282
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
[Proposal] Reduce patch-package
installation size
#499
Comments
I thought |
The installation size of the |
The installation size of the
patch-package
is reaching 2.33 MiB:(https://packagephobia.com/result?p=patch-package)
And here is the current npm dependency graph of the
patch-package
:https://npmgraph.js.org/?q=patch-package#zoom=w
I am wondering if we can reduce the installation size. And here is what I propose:
[email protected]
withpicocolors
picocolors
is "14 times smaller and 2 times faster than chalk", and is used by popular libraries like postcss, autoprefixer, and stylelint.[email protected]
with the Node.js built-infs
APIfs
API has been improving and evolving, Andpatch-package@8
is targeting Node.js 14+ already.[email protected]
with the Node.js built-infs.rm
APIrm -rf
-likefs.rm
API, and it has been available since Node.js 14.14.0json-stable-stringify
withfast-json-stable-stringify
json-stable-stringify
is shipped with aJSON
polyfill (jsonify
). But we don't need theJSON
polyfill sincepatch-package@8
is targeting Node.js 14+.Together we can reduce the installation size of the
patch-package
by470
KiB.@ds300 What do you think?
The text was updated successfully, but these errors were encountered: