Skip to content

Commit

Permalink
fix(dev): HMR can be caught by node server, fix #436
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Feb 8, 2023
1 parent 4bc429f commit 2d5b3c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/histoire/src/node/vite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ export async function getViteConfigWithPlugins (isServer: boolean, ctx: Context)
watch: {
ignored: [`!**/node_modules/.histoire/**`, '**/vite.config.*'],
},
...isServer
? {
hmr: false,
}
: {},
},
define: {
// We need to force this to be able to use `devtoolsRawSetupState`
Expand Down

0 comments on commit 2d5b3c8

Please sign in to comment.