Closed AndyTitu closed 7 months ago
Given the current approach of calling WASM functions from JS (using ES imports), there are a few limitations I ran into:
How To Test
. @jodyheavener do you know if another way exists? I tried using ts-node
but I kept running into other issues..js
extension in all the ES imports because otherwise node
couldn't resolve them. @jodyheavener again, this is something that I'd like to avoid.Closing this in favour of a new approach for distributing wasm files.
🦾 Reason to Be
Add logic for interacting with the WASM core. The core was built using
wasm_bindgen
.🤔 Thought Process
The
js-core
folder was built from Rust usingwasm_bindgen
for generating an additional JS wrapper.📋 How To Test
Run
npm start
from the root of this repo to run the provided example. This will run theexamples/index.ts
code (Make sure you're using the SA token and valid integration details).Under the hood
npm start
will compileTS
toJS
usingtsc
and then will run the producedindex.js
file withnode
.