wasmerio / docs.wasmer.io

The Wasmer Docs Website (website deployed using Wasmer Edge)
https://docs.wasmer.io/
MIT License
16 stars 8 forks source link

loading Wasm from registry behaves differently (doesn't work) than loading from local file #81

Open kandros opened 6 months ago

kandros commented 6 months ago

Following the tutorial for markdown-editor-improved I've noticed that using the version published on the registry

import { init, Wasmer, Command } from "@wasmer/sdk";

async function initialize() {
  await init();
  return await Wasmer.fromRegistry("wasmer-examples/markdown-renderer");
}

either wasmer-examples/markdown-renderer or the one I've published @kandros/markdown-renderer the markdown transformation doesn't work (video below)

https://github.com/wasmerio/docs.wasmer.io/assets/4562878/c01bed27-045b-4f80-8707-de57071926fe

While using the locally imported version it does work!

⚠️⚠️ NB: when running the package using wasmer CLI it's working as intended!

https://github.com/wasmerio/docs.wasmer.io/assets/4562878/0d514b1a-f37e-4208-9dc3-408fe526a6bf

shawvyu commented 5 months ago

me too