Skip to content

Commit 6d8848e

Browse files
authored
fix(coverage): Vite to ignore dynamic import of provider (#5998)
1 parent 910a04b commit 6d8848e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/coverage-istanbul/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export async function getProvider() {
44
// to not bundle the provider
55
const providerPath = './provider.js'
66
const { IstanbulCoverageProvider } = (await import(
7+
/* @vite-ignore */
78
providerPath
89
)) as typeof import('./provider')
910
return new IstanbulCoverageProvider()

0 commit comments

Comments
 (0)