wasm.js 323 B

123456789101112
  1. let w;
  2. /**
  3. * Lazyily get the WebAssembly module. Used to avoid unnecessarily importing
  4. * the wasm when extending the WebAssembly node code for native bindings.
  5. */
  6. export const getWasm = () => {
  7. if (!w) {
  8. w = require('../../dist/wasm/nodejs/blake3_js');
  9. }
  10. return w;
  11. };
  12. //# sourceMappingURL=wasm.js.map