Skip to content

Support CommonJS target? #3

Open
@Jack-Works

Description

@Jack-Works

Now only the ESModule target is supported. It is not a severe problem because React code is handled by bundlers. If you also need to run the code by ts-node you can set up your tsconfig.json like this:

{
    "compilerOptions": {
        "module": "ESNext",
    },
    "ts-node": {
        "compilerOptions": {
            "module": "CommonJS"
        }
    }
}

But if you really need CommonJS support, please vote and address your use case here!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions