You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using yarn with pnp linking, the handling of the * in a package.json#exports has a compatibility issue. Mainly, if the * appears in the middle, it fails, but this is supported with node out-of-the-box.
package.json:
...
"exports": {
"./*/index": "./src/*.mjs", // not honored when linking pnp-style but works otherwise
"./*": "./src/*.mjs" // works always
}
...
Self-service
Describe the bug
When using yarn with pnp linking, the handling of the * in a package.json#exports has a compatibility issue. Mainly, if the * appears in the middle, it fails, but this is supported with node out-of-the-box.
package.json:
To reproduce
See: https://github.com/gpickell/yarn-bug-exports-handling
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: