Skip to content

Commit

Permalink
fix: support ESM when reading coverage (#692)
Browse files Browse the repository at this point in the history
  • Loading branch information
NotWearingPants committed Oct 4, 2023
1 parent 8b1baa8 commit fc509cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/istanbul-lib-instrument/src/read-coverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function getAst(code) {
allowImportExportEverywhere: true,
allowReturnOutsideFunction: true,
allowSuperOutsideMethod: true,
sourceType: 'script',
sourceType: 'unambiguous',
plugins: defaults.instrumenter.parserPlugins
}
});
Expand Down

0 comments on commit fc509cc

Please sign in to comment.