Skip to content

Commit

Permalink
fix: Updated initialization of SandpackInstance to set it as a global…
Browse files Browse the repository at this point in the history
… variable
  • Loading branch information
danilowoz committed Feb 25, 2024
1 parent e34e851 commit 76b82c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,4 +233,4 @@ class SandpackInstance {
}
}

new SandpackInstance();
window.__SANDPACK__ = new SandpackInstance();

Check failure on line 236 in src/index.ts

View workflow job for this annotation

GitHub Actions / test

Property '__SANDPACK__' does not exist on type 'Window & typeof globalThis'.

0 comments on commit 76b82c3

Please sign in to comment.