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

feat: support ESM #70

Merged
merged 2 commits into from
Jul 16, 2023
Merged

feat: support ESM #70

merged 2 commits into from
Jul 16, 2023

Conversation

yusukebe
Copy link
Member

With this PR, Node Server adapter will support both CommonJS and ESM.

@yusukebe yusukebe merged commit 4173cfe into main Jul 16, 2023
3 checks passed
@yusukebe yusukebe deleted the feat/esm branch July 16, 2023 07:25
@marvin-j97
Copy link
Contributor

marvin-j97 commented Jul 16, 2023

Great news!

You could probably save yourself the build script and just use https://github.com/egoist/tsup which uses esbuild and tsc internally.

tsup --entry src/index.ts --format cjs,esm --dts --clean

is the command I always use and it works perfectly.

@yusukebe
Copy link
Member Author

@marvin-j97

That looks great. I'll try it later!

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 this pull request may close these issues.

2 participants