aboutsummaryrefslogtreecommitdiff
path: root/src/runtime.footer.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-06-24 22:55:42 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-06-24 22:55:42 -0700
commitb55e64ffa3617f8213485bf76b4ea0a7a0d6d3c3 (patch)
treef7556fe4a6819f4d17065e49a2ab5ed55ce412b5 /src/runtime.footer.js
parentd09194f05a372e3ed136aa288ae76cae8c1dc641 (diff)
downloadbun-b55e64ffa3617f8213485bf76b4ea0a7a0d6d3c3.tar.gz
bun-b55e64ffa3617f8213485bf76b4ea0a7a0d6d3c3.tar.zst
bun-b55e64ffa3617f8213485bf76b4ea0a7a0d6d3c3.zip
I like this direction
Former-commit-id: 3a95a74b7feadb59a215ff06446ccebff4a4008e
Diffstat (limited to 'src/runtime.footer.js')
-rw-r--r--src/runtime.footer.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/runtime.footer.js b/src/runtime.footer.js
index 94a358eb5..cad687e2d 100644
--- a/src/runtime.footer.js
+++ b/src/runtime.footer.js
@@ -1,6 +1,8 @@
// ---
// Public exports from runtime
-export var $$m = SPEEDY_RUNTIME.$$m;
+// Compatible with Speedy's Runtime Environment and web browsers.
+export var $$m =
+ "$primordials" in globalThis ? $primordials.require : SPEEDY_RUNTIME.$$m;
export var __HMRModule = SPEEDY_RUNTIME.__HMRModule;
export var __FastRefreshModule = SPEEDY_RUNTIME.__FastRefreshModule;
export var __HMRClient = SPEEDY_RUNTIME.__HMRClient;
@@ -9,6 +11,6 @@ export var $$lzy = SPEEDY_RUNTIME.$$lzy;
export var __toModule = SPEEDY_RUNTIME.__toModule;
export var __commonJS = SPEEDY_RUNTIME.__commonJS;
export var __require = SPEEDY_RUNTIME.__require;
-export var __name = SPEEDY_RUNTIME.__name;
-export var __export = SPEEDY_RUNTIME.__export;
-export var __reExport = SPEEDY_RUNTIME.__reExport;
+export var __name = PEEDY_RUNTIME.__name;
+export var __export = PEEDY_RUNTIME.__export;
+export var __reExport = PEEDY_RUNTIME.__reExport;