docknetwork / crypto-wasm-ts

Typescript abstractions over Rust crypto library's WASM wrapper
Apache License 2.0
27 stars 7 forks source link

Using crypto-wasm-ts in a browser #23

Open accozzam opened 1 year ago

accozzam commented 1 year ago

I'm trying to use the module in a browser, but it cannot be resolved correctly: Uncaught TypeError: Failed to resolve module specifier "@docknetwork/crypto-wasm-ts".

Any suggestions?

lovesh commented 1 year ago

Running typescript in a browser isn't practical first convert it to js using yarn build and then use the js file in your browser. The project doesn't have a bundler to create a single js file yet as we expect the consumer app to have a bundler setup, eg. sdk uses this project and its bundler (rollup) takes care of it.