Skip to content

chore: convert CommonJS to ESM #129

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

Merged
merged 2 commits into from
Jan 31, 2025
Merged

chore: convert CommonJS to ESM #129

merged 2 commits into from
Jan 31, 2025

Conversation

echo094
Copy link
Owner

@echo094 echo094 commented Jan 31, 2025

In #37 , the repo was converted to CommonJS to stop at uncaught exceptions. Recently, a new method was found:

This has cost me a lot of wasted time as well. A workaround seems to be to run your top-level code inside process.nextTick(async () => { ... });.

Considering that ESM is part of the ECMAScript standard, it is time to convert this repo to ESM.

@echo094 echo094 marked this pull request as ready for review January 31, 2025 12:58
@echo094 echo094 merged commit 9e0a60b into main Jan 31, 2025
2 checks passed
@echo094 echo094 deleted the commonjs_to_esm branch January 31, 2025 12:58
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.

1 participant