Skip to content

Does not work with "type": "module" in package.json #120

Description

@monoclex

node -r @swc-node/register index.ts seems to work, but only if "type": "module" isn't in package.json. I would give more details, but I don't know what the problem is myself.

Attached is a reproducible example of this bug.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingquestionFurther information is requested

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions