Skip to content

Commit

Permalink
fix: plugins don't think it's watch mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Aug 4, 2022
1 parent 82a877c commit f027b05
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/vitest/src/node/plugins/index.ts
Expand Up @@ -26,6 +26,9 @@ export async function VitestPlugin(options: UserConfig = {}, ctx = new Vitest())
<VitePlugin>{
name: 'vitest',
enforce: 'pre',
options() {
this.meta.watchMode = false
},
config(viteConfig: any) {
// preliminary merge of options to be able to create server options for vite
// however to allow vitest plugins to modify vitest config values
Expand Down

0 comments on commit f027b05

Please sign in to comment.