-
Notifications
You must be signed in to change notification settings - Fork 2.7k
ship compiled hooks behind exports condition, inline React Compiler runtime #12731
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
base: release-4.0
Are you sure you want to change the base?
Conversation
|
commit: |
size-limit report 📦
|
I know we had talked about this a little before but did you want to pursue the idea of a separate export condition instead? |
@jerelmiller this is that - a separate build behind the |
Now we have both Let's wait for feedback from the Compiler team what they think about the exports condition. It would reduce the risk of importing from both entry points and accidentally shipping hooks in two different versions, bloating bundle size, but the exports condition would need to become an ecosystem pattern. |
@phryneas oh gosh I realized I didn't refresh the page when I made that comment so I didn't see the new commits 🤦♂️. My mistake! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assuming we get the blessing from the react team, this looks good to me
This would be one possible solution to the React Compiler runtime not being released in a stable version yet.
@apollo/client/react
are not compiled per defaultreact-compiler
exports conditionreact-compiler-runtime
as that's still not stable, but we ship a snapshot of it ourselves as@apollo/client/react/internal/compiler-runtime