summaryrefslogtreecommitdiff
path: root/node_modules/blake3-wasm/esm/node/wasm.js
blob: 026a37453888d09b8f1a2fcac85344967882e566 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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