Closed dhdaines closed 1 year ago
This should work with the latest Emscripten (see https://github.com/emscripten-core/emscripten/pull/17915#issuecomment-1310758878 for instructions)
BUT, I need to remove various uses of require
from the code, which are all related to the need to run under Node.js:
modelBase
and get_model_path
, which are not good APIs anyway, and should perhaps use import.meta.url
somehow insteadBut see also #39 because supporting Node is not actually desireable
Or, actually, should use https://github.com/lquixada/cross-fetch
Fixed in #57
It seems that this is possible, so we should do it.