aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/postgres
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun.js/postgres')
-rw-r--r--src/bun.js/postgres/postgres.exports.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bun.js/postgres/postgres.exports.js b/src/bun.js/postgres/postgres.exports.js
new file mode 100644
index 000000000..beae64f24
--- /dev/null
+++ b/src/bun.js/postgres/postgres.exports.js
@@ -0,0 +1,8 @@
+var symbolFor = Symbol.for;
+
+const lazy = globalThis[symbolFor("Bun.lazy")];
+if (!lazy || typeof lazy !== "function") {
+ throw new Error(
+ "Something went wrong while loading Bun. Expected 'Bun.lazy' to be defined.",
+ );
+}