MCPcopy Create free account
hub / github.com/9oelM/emscripten-cplusplus-webpack-example / locateFile

Function locateFile

packages/example-wasm/index.js:9–14  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

7// More details: https://kripken.github.io/emscripten-site/docs/api_reference/module.html
8const wasm = fib({
9 locateFile(path) {
10 if (path.endsWith(`.wasm`)) {
11 return fibonacciModule
12 }
13 return path
14 },
15})
16
17export default wasm

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected