build: use the es6 build for ESM exports#1707
Conversation
The committers listed above are authorized under a signed CLA. |
|
Related issue on the React repository: facebook/react#33052 |
|
Honestly this seems like a bug in the React compiler, if it just removes symbols that are used. However it does make sense in general to not use the source code but the built code anyways, so I'm gonna merge this. |
This reverts commit cf67025.
|
This has caused problems, so I have reverted it for now until we can figure out what the problem is. |
|
Any updates? |
|
Hi! I am using 3.7.1 and still have the issue on React Native (Expo 53) 🤔 It looks like the revert was not enough? Still, I think the real issue here would be to tackle the circular dependency issue itself. Also, here's the error as text so that other people can find it easily (I was not able to find the issue because the error is only in the screenshot 😁 ) |
|
The revert happens because the fix in this PR caused other issues. |
@diesieben07 just tried it, the release fixes it 🚀 |
|
Thank you for confirming! |
Currently it seems that Metro (from React Native) isn't resolving Luxon correctly due to the incorrect exports configuration.
It seems that ESM imports prefer the source code instead of the built code. Changing this to the es6 build resolves the issue.
This is the error with the old export:
