Skip to content

Commit

Permalink
fix(coverage): Vite to ignore dynamic import of provider (#5998)
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio authored Jun 30, 2024
1 parent 910a04b commit 6d8848e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/coverage-istanbul/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export async function getProvider() {
// to not bundle the provider
const providerPath = './provider.js'
const { IstanbulCoverageProvider } = (await import(
/* @vite-ignore */
providerPath
)) as typeof import('./provider')
return new IstanbulCoverageProvider()
Expand Down

0 comments on commit 6d8848e

Please sign in to comment.