mirror of
https://github.com/JonasunderscoreJones/api-worker.git
synced 2025-10-23 18:39:19 +02:00
12 lines
No EOL
323 B
JavaScript
12 lines
No EOL
323 B
JavaScript
let w;
|
|
/**
|
|
* Lazyily get the WebAssembly module. Used to avoid unnecessarily importing
|
|
* the wasm when extending the WebAssembly node code for native bindings.
|
|
*/
|
|
export const getWasm = () => {
|
|
if (!w) {
|
|
w = require('../../dist/wasm/nodejs/blake3_js');
|
|
}
|
|
return w;
|
|
};
|
|
//# sourceMappingURL=wasm.js.map
|