I would like to use this great package: https://github.com/hpcc-systems/hpcc-js-wasm It bundles a Webassembly (graphizlib.wasm) with the Javascript functions to use. I added it as a dependency in package.json.
"dependencies": {
"@hpcc-js/wasm": "^1.13.0"
},
When I now run the Vite dev server then the Javascript code is found easily enough. But the wasm isn't available. In particular, I get this error message:
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:3000/graphvizlib.wasm
I am not sure how to make the embedded web assembly available for my site. It is in the dependency package. See #1, within the node_modules (#2), in the @hpcc-js/wasm/dist folder (#3)
I tried it as well with the build configuration of Vite - without access.