Has anyone been able to use preResolution? #9443
Closed
TrevorBurnham
started this conversation in
General
Replies: 1 comment 1 reply
-
Currently preResolution and the custom fetchers are used by stackblitz in proprietary code, I guess. You can only load them from a global pnpmfile. So if you declare them in a local pnpmfile, they will be ignored. But we will change that soon: #9447 We will also add hooks for writing custom resolvers. The docs will be updated with all these hooks after finishing the mentioned PR. There are 2 companies that want to use pnpm with their custom resolvers and fetchers. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
3 years ago, pnpm added support for preResolution, a hook that runs before resolution. I still see it in the codebase, but:
.pnpmfile.cjs
files that use it (as opposed to fetchers), where I see at least one experiment).Steps to replicate:
yarn exec pnpm --config.pnpmfile=.pnpmfile.cjs install
I'm trying to implement custom resolutions, like you can do with yarn plugins.
Beta Was this translation helpful? Give feedback.
All reactions