I have a NextJS app that incorporates shared components from another repo which is built into a package via vite.
next/link instances inside the package do not prefetch when run inside the next app. The app is running in production mode, and I've verified prefetching works properly when I put the same link in the next app proper.
I've also got the package included in the transpilePackages option of next.config.js.
How can I get the next/link instances inside the shared package to prefetch as expected?
Linkfrom your app to the components mentioned.next/linkto work as expected when used in a packaged library running in a nextjs app. If not, and there is sufficient proof, I'm cool with that too.