Skip to content

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.

Signed-off-by: echo094 <20028238+echo094@users.noreply.github.com>
Signed-off-by: echo094 <20028238+echo094@users.noreply.github.com>
@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.

2 participants