Change rootDir in TS plugin

This commit is contained in:
Tom Coleman 2023-02-03 10:52:20 +11:00
parent 3910a165d5
commit 8b1fe47d26

View File

@ -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: {