Skip to content
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

Please read this if you think transpilation is wrong #7435

Open
kdy1 opened this issue May 23, 2023 · 0 comments
Open

Please read this if you think transpilation is wrong #7435

kdy1 opened this issue May 23, 2023 · 0 comments

Comments

@kdy1
Copy link
Member

kdy1 commented May 23, 2023

This document describes that are not a bug. If you file an issue that is described in this issue, the issue will be closed without any additional information.

Class fields are undefined

jest.mock of ESM fails / Cannot modify ES modules.

Evaluation order of module: "commonjs" is different from tsc.

The behavior of tsc is wrong. ESM is an established standard, and the specification explicitly says that ESM imports are hoisted.

Cyclic imports of ESM do not work (as what you want)

ESM is an established standard, and as SWC is a compiler, SWC always follows specifications.

I can't import CJS Modules from node.js ESM.

@kdy1 kdy1 pinned this issue May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant