Repository navigation
Add exports to package.json - #5662
coolassassin wants to merge 1 commit into
Conversation
|
df86be2 to
11301b4
Compare
quantizor
left a comment
There was a problem hiding this comment.
This is needed — the `exports` field enables proper ESM/CJS resolution for modern bundlers. The condition ordering looks correct (react-native → browser → default).
A few notes for rebase:
- Main has changed significantly since this was opened
- The `exports` field previously caused TS2742 issues in composite projects — please verify with `tsc --composite` in a consuming project
- Consider adding `"./package.json": "./package.json"` (already present in your diff, good)
Would welcome a rebase onto current main!
|
Closing — we've tried adding If you're hitting a specific resolution issue with a modern bundler, please open an issue with the exact error and bundler config so we can evaluate targeted fixes. |
It is a redo for this PR
I have updated to the latest release, and my Vitest setup is failing again after this commit:
788e8c0
I have tried to reproduce the bug, which is described in the commit, but I have no results
Maybe only the second part of the fix is really necessary?
Also, I want to add that if we talk about these issue:
#5648
We can see that the issue has been present since 6.3.7.
But exports were added in 6.3.8