Open ksylvest opened 4 months ago
workaround: downgrade the rehackt to 0.0.6
https://npmdiff.dev/rehackt/0.0.6/0.1.0/package/index.js I think I found the reason
if (0) {
module.exports = require("react");
}
...
Object.assign(module.exports, require("react"));
break the bun build
@codehz thank you sharing your findings around fixing!
What version of Bun is running?
1.1.18
What platform is your computer?
x86
What steps can reproduce the bug?
Given the following simple project:
package.json
demo.tsx
Checking in the ApolloClient, I see the following snippet that matches:
https://github.com/apollographql/apollo-client/blame/main/src/react/context/ApolloContext.ts#L30-L32
The compiled source includes:
Unclear why it is using
undefined[contextKey]
. Further confusion arises based on the target. When settingtarget=browser
ortarget=bun
it fails, but fortarget=node
it strangely works...What is the expected behavior?
Bun prints "🚀".
What do you see instead?
Additional information
No response