You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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";
shouldfetch("../{library}/markdown-wasm/dist/markdown.wasm")
It should use
import.meta.url
to resolve to the same path.The text was updated successfully, but these errors were encountered: