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 ESM emit from swc transpiler #1397

Closed
cspotcode opened this issue Jul 14, 2021 · 0 comments · Fixed by #1409
Closed

Support ESM emit from swc transpiler #1397

cspotcode opened this issue Jul 14, 2021 · 0 comments · Fixed by #1409
Milestone

Comments

@cspotcode
Copy link
Collaborator

cspotcode commented Jul 14, 2021

https://github.com/TypeStrong/ts-node/blob/main/src/transpilers/swc.ts#L64

SWC transpiler is hardcoded to emit CommonJS. This should be updated to emit native ESM to support the --loader.

Needs tests.

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

Successfully merging a pull request may close this issue.

1 participant