ds300 / patch-package

Fix broken node modules instantly 🏃🏽‍♀️💨
MIT License
10.17k stars 283 forks source link

patch-package too slow #482

Open QGB opened 11 months ago

QGB commented 11 months ago
./node_modules/.bin/patch-package klinecharts
patch-package 8.0.0
• Creating temporary folder
• Installing klinecharts@9.5.0 with npm

it tooks long time , Is there has --loglevel verbose to see what hangs?

hzhu commented 10 months ago

Our team has noticed bottlenecks with patch-package in the build step. It takes 3 minutes to apply a two line patch to jest-environment-jsdom 🤔 .

Screenshot 2023-08-23 at 10 03 08
gilons commented 8 months ago

I switched to this one https://www.npmjs.com/package/custompatch as patch-package became impractical. Taking too much time to create patches, sometimes it doesn’t. And to my experience it's like there's a limited number of patches that can be created, because it has hard memory limitations https://github.com/ds300/patch-package/blob/c7c63bf80b3c6b8640b933e20229121b4edfc100/src/makePatch.ts#L253C7-L253C7. I tried increasing that limit, but it stopped creating patches.