Skip to content

Commit

Permalink
fix: don't optimize react/jsx-runtime by default when running in Node (
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Jan 30, 2024
1 parent 1045b98 commit 0d2bfea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vitest/src/node/plugins/utils.ts
Expand Up @@ -34,7 +34,7 @@ export function resolveOptimizerConfig(_testOptions: DepsOptimizationOptions | u
'vue',
...(testOptions.exclude || viteOptions?.exclude || []),
]
const runtime = currentInclude.filter(n => n.endsWith('jsx-dev-runtime'))
const runtime = currentInclude.filter(n => n.endsWith('jsx-dev-runtime') || n.endsWith('jsx-runtime'))
exclude.push(...runtime)

const include = (testOptions.include || viteOptions?.include || []).filter((n: string) => !exclude.includes(n))
Expand Down

0 comments on commit 0d2bfea

Please sign in to comment.