I can't get automerge running in browser with rollup.
none of the exports from the wasm file will be recognized
-> [name] is not exported by node_modules/@automerge/automerge-wasm/bundler/automerge_wasm_bg.wasm
e.g.: automerge_generateSyncMessage is not exported by ...
what is missing for rollup
src/index.mjs
import * as Automerge from "@automerge/automerge";
export default () => {
let doc = Automerge.init();
let actorId = Automerge.getActorId(doc);
console.log("Automerge", actorId);
}
This looks to me like an issue with Rollup's wasm plugin rather than automerge specifically. Although I appreciate that the state of wasm module support in the JS ecosystem is quite frustrating at the moment.
I can't get automerge running in browser with rollup.
none of the exports from the wasm file will be recognized -> [name] is not exported by node_modules/@automerge/automerge-wasm/bundler/automerge_wasm_bg.wasm e.g.: automerge_generateSyncMessage is not exported by ...
what is missing for rollup
src/index.mjs
automerge.html
rollup.config.js