-
Notifications
You must be signed in to change notification settings - Fork 66
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.
wyatt1112wyatt1112
Metadata
Metadata
Assignees
Labels
No labels