[rollup/plugin-wasm] Can't find the .wasm
file even though the path to it is correct
#1459
-
I am trying to expose the My code here. The important bits are the rollup config and me trying to import the .wasm file here. For some reason even though the path to the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I am not sure, perhaps you have to do this instead of trying to import the .wasm file directly? |
Beta Was this translation helpful? Give feedback.
-
As update, I think the .wasm gets bundled into the
That's why I get this error when I try to call the exported const of import of wasm file. Code for it: import { libgit } from "@inlang/git-sdk/api"
export function Page() {
onMount(() => {
console.log(libgit())
}) |
Beta Was this translation helpful? Give feedback.
-
Recommendations when publishing a Wasm library is great article. I think it answers my questions in full. |
Beta Was this translation helpful? Give feedback.
Recommendations when publishing a Wasm library is great article. I think it answers my questions in full.