Skip to content

Commit

Permalink
fix: setupFile.browser only being also applied to server, related to #…
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Nov 12, 2022
1 parent a326a6a commit 833d086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/histoire/src/node/vite.ts
Expand Up @@ -193,7 +193,7 @@ export async function getViteConfigWithPlugins (isServer: boolean, ctx: Context)
file = setupFileConfig
} else if (isServer && 'server' in setupFileConfig) {
file = setupFileConfig.server
} else if ('browser' in setupFileConfig) {
} else if (!isServer && 'browser' in setupFileConfig) {
file = setupFileConfig.browser
}
if (file) {
Expand Down

0 comments on commit 833d086

Please sign in to comment.