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
Bundlers (RollupJS / WebPack) will ignore the WASM files, so you will need to manually ensure they are present in your final distribution (typically they are placed in the same folder as the bundled JS)
Is there some official guidelines for what needs to happen with webpack, for example to get the file pushed all the way from node_modules down to some static directory?
The text was updated successfully, but these errors were encountered:
I suspect WebPack has plugins which will handle this for you - but what I tend to do is treat the wasm file the same as I might any asset (like png or wav file) and copy it from the node_modules folder into my "dist" or "build" folder next to where webpack is outputting its files.
At which point it may "just work", but if not you will need to call wasmFolder with the location.
Alternatively you can set the following global variable: __hpcc_wasmFolder to the same URL your pulling your webpacked files from (before any page tries to load the wasm file).
For anyone who stumbles across this thread, I was able to deploy the wasm through rollup with by using the rollup-plugin-copy module to move the necessary files into the build folder:
The docs mention that:
Is there some official guidelines for what needs to happen with webpack, for example to get the file pushed all the way from node_modules down to some static directory?
The text was updated successfully, but these errors were encountered: