From b55e64ffa3617f8213485bf76b4ea0a7a0d6d3c3 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Thu, 24 Jun 2021 22:55:42 -0700 Subject: I like this direction Former-commit-id: 3a95a74b7feadb59a215ff06446ccebff4a4008e --- src/runtime.footer.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/runtime.footer.js') 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; -- cgit v1.2.3