Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade to webpack 4 #4112

Closed
wants to merge 16 commits into from
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