Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix afterAnyInvoke hook compatibility with pnpm 4
Maybe caused by the change of resolve mechanism in pnpm 4, calling the hook from the creator would get a `Cannot find module` error. As a workaround, we now require and cache the module outside the callback function.
- Loading branch information