Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Commit

Permalink
fix(vite): assign global to window
Browse files Browse the repository at this point in the history
  • Loading branch information
mxdvl committed Oct 25, 2022
1 parent 4a81b2f commit 89bb99c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .storybook/main.ts
Expand Up @@ -25,9 +25,6 @@ const config: StorybookViteConfig = {
plugins: [react({
jsxImportSource: "@emotion/react",
})],
define: {
global: 'globalThis',
}
})
}
}
Expand Down
3 changes: 3 additions & 0 deletions .storybook/preview-head.html
@@ -0,0 +1,3 @@
<script>
window.global = window;
</script>

0 comments on commit 89bb99c

Please sign in to comment.