sleepyShen1989 / blog

MIT License
0 stars 0 forks source link

【实战】如果项目中的第三方依赖有bug #23

Open sleepyShen1989 opened 1 year ago

sleepyShen1989 commented 1 year ago

基本思路

解决方案

选择以下任一一种

  1. github fork -> bug fix -> npm i https://github.com/yourname/xxx.git
  2. github fork -> bug fix -> publish it with another name -> change package name (require('lodash') => require('my-lodash'))
  3. github fork -> bug fix -> publish it with another name -> pnpm add lodash@npm:my-lodash
  4. patch-package : 如果使用pnpm管理会有问题
  5. pnpm patch命令

参考资料