Skip to content

Commit

Permalink
Merge pull request #38 from fjf2002/patch-2
Browse files Browse the repository at this point in the history
Fix for: Instrumentation fails if CSP 'unsafe-eval' is not set
  • Loading branch information
iFaxity authored Apr 27, 2022
2 parents 69d837a + 2e6f3ab commit da20fc6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ export = function istanbulPlugin(opts: IstanbulPluginOptions = {}): Plugin {
excludeNodeModules: true,
});
const instrumenter = createInstrumenter({
coverageGlobalScopeFunc: false,
coverageGlobalScope: 'window',
preserveComments: true,
produceSourceMap: true,
autoWrap: true,
Expand Down

0 comments on commit da20fc6

Please sign in to comment.