How to resolve the path of wasm file
koreex opened this issue · 2 comments
koreex commented
When we use this package in Next.js project, how can we resolve the path of wasm file? It seems like the javascript file assumes that the wasm file is in the same folder
connormanning commented
LazPerf.create
(and the alias createLazPerf
) is an EmscriptenModuleFactory
so you can pass it a locateFile
function to point wherever you want.
koreex commented
It solved my problem. Thank you @connormanning