Skip to content

Commit

Permalink
Merge pull request #20911 from storybookjs/fix-ui-turbosnap
Browse files Browse the repository at this point in the history
Build: Change `rootDir` in TS plugin
  • Loading branch information
tmeasday authored Feb 3, 2023
2 parents 3910a16 + 8b1fe47 commit 4ae75c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/ui/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 4ae75c0

Please sign in to comment.