summaryrefslogtreecommitdiff
path: root/node_modules/blake3-wasm/dist/index.js
diff options
context:
space:
mode:
authorakiyamn2023-09-24 23:22:21 +1000
committerakiyamn2023-09-24 23:22:21 +1000
commit4e87195739f2a5d9a05451b48773c8afdc680765 (patch)
tree9cba501844a4a11dcbdffc4050ed8189561c55ed /node_modules/blake3-wasm/dist/index.js
downloadprice-tracker-worker-4e87195739f2a5d9a05451b48773c8afdc680765.tar.gz
price-tracker-worker-4e87195739f2a5d9a05451b48773c8afdc680765.zip
Initial commit (by create-cloudflare CLI)
Diffstat (limited to 'node_modules/blake3-wasm/dist/index.js')
-rw-r--r--node_modules/blake3-wasm/dist/index.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/node_modules/blake3-wasm/dist/index.js b/node_modules/blake3-wasm/dist/index.js
new file mode 100644
index 0000000..3834342
--- /dev/null
+++ b/node_modules/blake3-wasm/dist/index.js
@@ -0,0 +1,19 @@
+"use strict";
+function __export(m) {
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
+}
+Object.defineProperty(exports, "__esModule", { value: true });
+// Bunlers add the `process.browser` flag to indicate the build enviroment.
+// Throw a verbose error if we see people bundling the Node.js build in their
+// browser, since it probably won't work for them (or at least not give them)
+// nice tree shaking and such.
+//
+// Note that we don't check the presence of window/document, since those can
+// be emulated in common test scenarios (e.g. jest's default setup with jsdom).
+if (process.browser) {
+ throw new Error('You tried to import the Node.js version of blake3, instead of the browser ' +
+ 'version, in your build. You can fix this by importing "blake3/browser" ' +
+ 'instead of "blake3"');
+}
+__export(require("./node"));
+//# sourceMappingURL=index.js.map \ No newline at end of file