Making Next.js loves my custom conditional exports
Hello
,
I'm trying to fiddle with the Next.js webpack config to have the resolution follow my custom condition in
Normally with webpack it would be as simple as putting the value in
Does anyone has experience with this? The goal is to be able to load another package from my monorepo, I use the custom condition to point to the TS entry file instead of the dist one in dev.
I'm already using
I'm trying to fiddle with the Next.js webpack config to have the resolution follow my custom condition in
package.json#exports.Normally with webpack it would be as simple as putting the value in
config.resolve.conditionNames, but it doesn't seem to work, my package is still not resolved.Does anyone has experience with this? The goal is to be able to load another package from my monorepo, I use the custom condition to point to the TS entry file instead of the dist one in dev.
I'm already using
transpilePackages.