Skip to content

Commit

Permalink
update packages and conf files
Browse files Browse the repository at this point in the history
  • Loading branch information
Sumit Sharma1 authored and Sumit Sharma1 committed Aug 23, 2019
1 parent 115031b commit d5effd3
Show file tree
Hide file tree
Showing 5 changed files with 264 additions and 187 deletions.
3 changes: 2 additions & 1 deletion .babelrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ module.exports = {
"ie >= 10",
"ios >= 8"
]
}
},
modules: 'commonjs' //This causes Babel to transpile ES modules into CJS modules before Webpack sees them, which prevents Webpack from creating getters, which fixes Sinon.(Ref: https://github.com/webpack/webpack/issues/6979)
}
]
],
Expand Down
3 changes: 1 addition & 2 deletions karma.conf.maker.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ function newWebpackConfig(codeCoverage) {
var webpackConfig = _.cloneDeep(webpackConf);

// remove optimize plugin for tests
webpackConfig.plugins.pop()

webpackConfig.optimization = {};
webpackConfig.devtool = 'inline-source-map';

if (codeCoverage) {
Expand Down
Loading

0 comments on commit d5effd3

Please sign in to comment.