Skip to content

Commit

Permalink
pass esModules flag for istanbul-instrumenter-loader
Browse files Browse the repository at this point in the history
  • Loading branch information
snapwich committed Jan 16, 2019
1 parent d626c73 commit 4f88aa6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion karma.conf.maker.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ function newWebpackConfig(codeCoverage) {
webpackConfig.module.rules.push({
enforce: 'post',
exclude: /(node_modules)|(test)|(integrationExamples)|(build)|polyfill.js|(src\/adapters\/analytics\/ga.js)/,
loader: 'istanbul-instrumenter-loader',
use: {
loader: 'istanbul-instrumenter-loader',
options: { esModules: true }
},
test: /\.js$/
})
}
Expand Down

0 comments on commit 4f88aa6

Please sign in to comment.