Skip to content

Commit

Permalink
fix: don't optimize vue when using optimizer
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Sep 22, 2023
1 parent 1f0249e commit 4e94120
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vitest/src/node/plugins/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export function resolveOptimizerConfig(_testOptions: DepsOptimizationOptions | u
'vitest',
// Ideally, we shouldn't optimize react in test mode, otherwise we need to optimize _every_ dependency that uses react.
'react',
'vue',
...(testOptions.exclude || viteOptions?.exclude || []),
]
const runtime = currentInclude.filter(n => n.endsWith('jsx-dev-runtime'))
Expand Down

0 comments on commit 4e94120

Please sign in to comment.