Rollup: bundling/embedding wasm code from an external module
问题 Using rollup, I'm trying to bundle a typescript library that imports and calls an npm module that contains a wasm file. Only the resulting bundle contains no trace of the wasm file contents. How can I force it to bundle the webassembly too ? Here's the key files from what I've tried: // typescript/src/index.ts import * as libEd from "ed25519-raw"; export const seed_from_phrase = libEd.seed_from_phrase; export const gen_keypair = libEd.gen_keypair; My package.json is { "name": "ed25519",