aboutsummaryrefslogtreecommitdiff
path: root/src/runtime.footer.js
diff options
context:
space:
mode:
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;