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 both browser(esm) and nodejs(commonjs) packages #40

Open
tohacking opened this issue Aug 19, 2024 · 0 comments
Open

support both browser(esm) and nodejs(commonjs) packages #40

tohacking opened this issue Aug 19, 2024 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@tohacking
Copy link
Collaborator

Currently, only ESM for running in browser is supported.

The commonJs package can be also be supported like so in the commented code:

https://github.com/m4-team/spin-sdk/blob/bbf47a1999ab9ca027cac4b1b6f7204834622385/sdk/gameplay/export/spinjs/src/GamePlay.ts#L20

Goal:

  • support both browser and nodejs environments.
@tohacking tohacking added the help wanted Extra attention is needed label Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant