Want make more clear why get rid of ESM? #1021
-
Check these issues. I saw the following code was removed.
When remove these codes (exports xxx), in ESM it will think it is a CJS module. So there are two different ways.
Actually I could treat @testing-library/user-event as a CJS library, and I have a smart util function to check if xxx.default exists or not. However as I know the Native ESM should be the future, I want make sure we intent to do it (Go cjs), and it is not an unexpected change. BTW for issue 839, I guess the solution should use correct file extensions for type script such as .mts or .cts. or add type: "module" in package.json. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Fixed in #1022 - Thanks for the report ❤️ |
Beta Was this translation helpful? Give feedback.
Fixed in #1022 - Thanks for the report ❤️