From 76b82c3ce8c35998829ef7d5754469f50b7c50ed Mon Sep 17 00:00:00 2001 From: Danilo Woznica Date: Sun, 25 Feb 2024 21:04:30 +0000 Subject: [PATCH] fix: Updated initialization of SandpackInstance to set it as a global variable --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index a4f0cce..85ac97e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -233,4 +233,4 @@ class SandpackInstance { } } -new SandpackInstance(); +window.__SANDPACK__ = new SandpackInstance();