https://github.com/ds300/patch-package/issues/49#issuecomment-1081850871 This will work with the latest patch-package
$ yarn patch-package react --exclude '^$'