mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 20:11:07 +08:00
Change rootDir
in TS plugin
This commit is contained in:
parent
3910a165d5
commit
8b1fe47d26
@ -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: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user