-
Notifications
You must be signed in to change notification settings - Fork 3.6k
feat!: add exports map #6901
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat!: add exports map #6901
Conversation
BREAKING CHANGE: Add package.json exports map and remove proxy directories
Maybe this is to come in a future PR, but I want to make sure this is on your radar: even after these changes, the files in |
Yeah that's correct, this isn't true ESM. There are a number of upstream dependencies that RB includes that also don't ship proper ESM, so we have to work on those/look at alternatives. It's a long road 😄 |
Glad you're aware of this. I would strongly advise against adding |
@jquense any thoughts on this PR? This mimics the config in restart/ui and technically we only supported "faux ESM" with bundlers in the past, so this change shouldn't affect compatibility. I did a quick test on next + vite and it works. |
Lgtm, there is usually a few random things to adjust, so worth publishing some pre releases and testing in projects |
This will in fact impact compatibility if the "faux" ESM issue isn't addressed before this is released. I opened #6919 with a compatibility escape hatch, and I included more information about the actual problem there. |
BREAKING CHANGE: Add package.json exports map and remove proxy directories. Removes SSR utilities.
Supersedes #6897
Closes #6797