summaryrefslogtreecommitdiff
path: root/node_modules/blake3-wasm/dist/node/wasm.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/blake3-wasm/dist/node/wasm.js')
-rw-r--r--node_modules/blake3-wasm/dist/node/wasm.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/node_modules/blake3-wasm/dist/node/wasm.js b/node_modules/blake3-wasm/dist/node/wasm.js
new file mode 100644
index 0000000..9d4caa5
--- /dev/null
+++ b/node_modules/blake3-wasm/dist/node/wasm.js
@@ -0,0 +1,14 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+let w;
+/**
+ * Lazyily get the WebAssembly module. Used to avoid unnecessarily importing
+ * the wasm when extending the WebAssembly node code for native bindings.
+ */
+exports.getWasm = () => {
+ if (!w) {
+ w = require('../../dist/wasm/nodejs/blake3_js');
+ }
+ return w;
+};
+//# sourceMappingURL=wasm.js.map \ No newline at end of file