aboutsummaryrefslogtreecommitdiff
path: root/integration/snapshots/global-is-remapped-to-globalThis.hmr.debug.js
diff options
context:
space:
mode:
Diffstat (limited to 'integration/snapshots/global-is-remapped-to-globalThis.hmr.debug.js')
-rw-r--r--integration/snapshots/global-is-remapped-to-globalThis.hmr.debug.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/integration/snapshots/global-is-remapped-to-globalThis.hmr.debug.js b/integration/snapshots/global-is-remapped-to-globalThis.hmr.debug.js
new file mode 100644
index 000000000..dace8fa7a
--- /dev/null
+++ b/integration/snapshots/global-is-remapped-to-globalThis.hmr.debug.js
@@ -0,0 +1,26 @@
+import {
+__HMRModule as HMR
+} from "http://localhost:8080/__runtime.js";
+import {
+__HMRClient as Bun
+} from "http://localhost:8080/__runtime.js";
+Bun.activate(true);
+
+var hmr = new HMR(713665787, "global-is-remapped-to-globalThis.js"), exports = hmr.exports;
+(hmr._load = function() {
+ function test() {
+ console.assert(globalThis === globalThis);
+ return testDone(import.meta.url);
+ }
+ hmr.exportAll({
+ test: () => test
+ });
+})();
+var $$hmr_test = hmr.exports.test;
+hmr._update = function(exports) {
+ $$hmr_test = exports.test;
+};
+
+export {
+ $$hmr_test as test
+};