Skip to content

Please read this if you think transpilation is wrong #7435

Description

@kdy1

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions