-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
27.0.0-next.5 ESM loading regression #11214
Comments
Thanks for the report! This regressed in #11191 - forcing the transform to be sync fixes the issue. I assume we actually create multiple entries in the cache of the same key. A mutex should help here. Would be nice to reproduce this issue in a test, tho... I'll try π |
@ai fix released in next.6 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
π Bug Report
After updating
27.0.0-next.4
β27.0.0-next.5
ESM import start to have cache problem.I have a file with
Symbol
. But after the update, this file initializes twice and Symbol starts to have a different value in different files.To Reproduce
[Repo](https://github.com/logux/state/tree/jest-esm-bug
Expected behavior
The test should be passed.
Link to repl or repo (highly encouraged)
Was not able to find how to reproduce cache problem
envinfo
The text was updated successfully, but these errors were encountered: