pnpm
pnpm copied to clipboard
`require.resolve` broken for modules within own workspace
Given a package within a pnpm workspace with the name @org/pgk the following will fail with cannot find module. This works for both yarn 1 and npm's resolution.
require.resolve(`@org/pkg/src/main.ts`);
Raised a similar issue in #5237, and I think non-pnp Yarn has the same issue?