From 89bb99c5a69fdb8a28689efcd91e383638cc0997 Mon Sep 17 00:00:00 2001 From: Max Duval Date: Mon, 24 Oct 2022 11:01:45 +0100 Subject: [PATCH] fix(vite): assign global to window See the following issues: - https://github.com/storybookjs/storybook/issues/18399 - https://github.com/storybookjs/storybook/issues/15391 --- .storybook/main.ts | 3 --- .storybook/preview-head.html | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 .storybook/preview-head.html diff --git a/.storybook/main.ts b/.storybook/main.ts index 3c2c0c94..eb7d90c9 100644 --- a/.storybook/main.ts +++ b/.storybook/main.ts @@ -25,9 +25,6 @@ const config: StorybookViteConfig = { plugins: [react({ jsxImportSource: "@emotion/react", })], - define: { - global: 'globalThis', - } }) } } diff --git a/.storybook/preview-head.html b/.storybook/preview-head.html new file mode 100644 index 00000000..9154316c --- /dev/null +++ b/.storybook/preview-head.html @@ -0,0 +1,3 @@ + \ No newline at end of file