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 24, 2022
1 parent c4a8ee5 commit 5350cf7
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<script>
window.global = window;
</script>

0 comments on commit 5350cf7

Please sign in to comment.