[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
12

Configure Feed

Select the types of activity you want to include in your feed.

fix(coverage): load built-in provider without module runner (#9939)

authored by

Ari Perkkiö and committed by
GitHub
(Mar 23, 2026, 11:21 AM +0100) bf892081 5a608685

+4 -1
+4 -1
packages/vitest/src/utils/coverage.ts
··· 50 50 builtInModule += '/browser' 51 51 } 52 52 53 - const { default: coverageModule } = await loader.import(builtInModule) 53 + const { default: coverageModule } 54 + = loader.isBrowser 55 + ? await loader.import(builtInModule) 56 + : await import(/* @vite-ignore */ builtInModule) 54 57 55 58 if (!coverageModule) { 56 59 throw new Error(