wasm.js 395 B

1234567891011121314
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. let w;
  4. /**
  5. * Lazyily get the WebAssembly module. Used to avoid unnecessarily importing
  6. * the wasm when extending the WebAssembly node code for native bindings.
  7. */
  8. exports.getWasm = () => {
  9. if (!w) {
  10. w = require('../../dist/wasm/nodejs/blake3_js');
  11. }
  12. return w;
  13. };
  14. //# sourceMappingURL=wasm.js.map