We are exporting spreadsheets to Excel and need to load json2excel library locally. Path for worker.js can be set with exportModulePath option but library also needs lib.wasm. Path for it could be set with wasmPath option of postMessage function. That would require modification of Spreadsheet source code so can you add option to Spreadsheet object to set path also for lib.wasm?
The compiled xlsx_import_bg.wasm is included in the json2excel package:
and can be defined in the worker.js:
or in the compiled index.js file.
We’ll try to extend the possibility to define the wasmPath in the spreadsheet export config in the future updates.
I’ll inform you about the progress on this issue.