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

Isomorphic npm package #17

Open
blenderskool opened this issue Apr 8, 2020 · 0 comments
Open

Isomorphic npm package #17

blenderskool opened this issue Apr 8, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@blenderskool
Copy link
Owner

The library published on npm works only on the client-side. Support for the pigmnts library on server-side using Node.js can be implemented considering following points:

  • pigments_node() function can be implemented that is compatible with Node.js and does not depend on Browser APIs like canvas.
  • The existing pigments() function may depend on pigmnts_node() function making it easier to interact with the library on the client-side by abstracting canvas APIs.
  • Appropriate build system to create a single isomorphic package. wasm-pack supports multiple outputs targets, but combining them under a single package is a little messy. Hoping for this to be merged [WIP] Introduce an All target for outputting all supported module types by wasm-pack rustwasm/wasm-pack#705
@blenderskool blenderskool added the enhancement New feature or request label Apr 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant