hobuinc/laz-perf

How to resolve the path of wasm file

koreex opened this issue · 2 comments

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

LazPerf.create (and the alias createLazPerf) is an EmscriptenModuleFactory so you can pass it a locateFile function to point wherever you want.

It solved my problem. Thank you @connormanning