#7435·swc

Please read this if you think transpilation is wrong

Author: kdy1Created May 23, 2023Updated Sep 18, 2026

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.

TDZ semantics is broken