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

Support CommonJS target? #3

Open
Jack-Works opened this issue Nov 17, 2020 · 3 comments
Open

Support CommonJS target? #3

Jack-Works opened this issue Nov 17, 2020 · 3 comments

Comments

@Jack-Works
Copy link
Owner

Jack-Works commented Nov 17, 2020

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!

@hectorhon

This comment has been minimized.

@Jack-Works

This comment has been minimized.

@hectorhon

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants