Skip to content

Commit

Permalink
fix: Prevent readInitialCoverage from reading babel config (#562)
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyfarrell committed May 9, 2020
1 parent c4f276e commit 49b4745
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/istanbul-lib-instrument/src/read-coverage.js
Expand Up @@ -14,6 +14,8 @@ function getAst(code) {

// Parse as leniently as possible
return parseSync(code, {
babelrc: false,
configFile: false,
parserOpts: {
allowImportExportEverywhere: true,
allowReturnOutsideFunction: true,
Expand Down

0 comments on commit 49b4745

Please sign in to comment.