From 8b1fe47d26b8312e38b80c2e9bd762ce6c60791d Mon Sep 17 00:00:00 2001 From: Tom Coleman Date: Fri, 3 Feb 2023 10:52:20 +1100 Subject: [PATCH] Change `rootDir` in TS plugin --- code/ui/.storybook/main.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/ui/.storybook/main.ts b/code/ui/.storybook/main.ts index 6709b1bf460b..dbbb1f867a58 100644 --- a/code/ui/.storybook/main.ts +++ b/code/ui/.storybook/main.ts @@ -72,7 +72,9 @@ const config: StorybookConfig = { }, }, plugins: [ - configType === 'PRODUCTION' ? pluginTurbosnap({ rootDir: viteConfig.root || '' }) : [], + configType === 'PRODUCTION' + ? pluginTurbosnap({ rootDir: path.resolve(__dirname, '../..') }) + : [], ], optimizeDeps: { force: true }, build: {