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: modernize wasi example codes #304

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

winetree94
Copy link

@winetree94 winetree94 commented Aug 1, 2024

I have converted the example JavaScript code to ESM syntax.

Switching to ESM syntax provides the following benefits:

  • Improved code readability.
  • Better auto-completion support in IDEs.
  • Avoids polluting the global scope.
  • It is more familiar to web developers.

However, xterm-pty currently does not support ESM, so I have submitted a PR to address this:
mame/xterm-pty#38

Above PR needs to be merged first. In the meantime, I have published a separate library named xterm-pty-esm to ensure the code works correctly.

I wanted to check if you also need this kind of assistance. Thank you.

@winetree94 winetree94 marked this pull request as draft August 1, 2024 19:14
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