4 ms·
As someone who has been using patch-package on js projects for a number of years I can absolutely attest to its practicality, esp. over forking. Overhead / comp
by somishere 4y ago
As someone who has been using patch-package on js projects for a number of years I can absolutely attest to its practicality, esp. over forking. Overhead / complexity are negligible, and I can count on a hand the number of times a patch has become stale. That said, I will often fork as well if the fix is worthy of a PR, but still use / import the original package + patch into projects for clarity. Last solid example I can think of is 'fixing' firebase client xhr support in node, which simply required an extra polyfill package and a single line of code at the top of one file.