Uh oh!
There was an error while loading. Please reload this page.
[react-dom] Include all Node.js APIs in Bun entrypoint for /server - #34193
Conversation
Hi @RiskyMH! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
RiskyMH
commented
Sep 12, 2025
i wonder if these can be removed/edited now that bun actually supports node:stream well and thus the same apis as node (just with extra perf in some web api cases). |
…ct-dom # Conflicts: # packages/react-dom/npm/server.bun.js
eps1lon
commented
Oct 13, 2025
These codes need to work for older versions of React. It seems like this message is specific to browser builds not Bun builds. |
Uh oh!
There was an error while loading. Please reload this page.
janhesters
commented
Oct 23, 2025
Thanks @RiskyMH for creating this! |
bun's condition of react-dom/server to have latest normal node functions/serverUh oh!
There was an error while loading. Please reload this page.
Summary
fixesremix-run/react-router#12568, fixes#33612
The custom bun export condition seems to be missing some of the newer apis that normal node one has, so this PR adds the missing exports so that users of bun don't have errors.
How did you test this change?
used the built output and verified the functions are now present in the bun bundles