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

Create an implementation for common.ts that uses wasm-pack's pkg output #4

Open
3 tasks
mbalex99 opened this issue Oct 14, 2020 · 0 comments
Open
3 tasks

Comments

@mbalex99
Copy link
Contributor

  • Create an entry point in src/ called wasm-entry.ts that implements what the pkg output
  • Ensure that yarn build-typescript creates this file appropriately in dist/
  • Add the reference to the browser entry point in package.json. See here for more info

Comments

  • The output of the WebAssembly entry-point can be a ES6 module. There isn't a browser that supports WebAssembly but doesn't support ES6 Modules. Customers that use webpack should be able to consume the package as a module without much hassle.
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

No branches or pull requests

1 participant