Open
Description
Loading the module fails in the browser:
This fails because it attempts to fetch("markdown.wasm")
which (because it's ESM loaded) gets resolved on the root path, not the path relative to the module.
So import * as markdown from "../{library}/markdown-wasm/dist/markdown.es.js";
should fetch("../{library}/markdown-wasm/dist/markdown.wasm")
It should use import.meta.url
to resolve to the same path.
Metadata
Metadata
Assignees
Labels
No labels