Skip to content

Commit

Permalink
fix(config): webpack rc4 schema enforcment (fixes #193)
Browse files Browse the repository at this point in the history
  - defaults webpackOptions.entry to a function

BREAKING CHANGE: Remove entry:{} from test configurations

When updating to `"webpack": "2.2.0-rc.4"` & `"karma-webpack": "1.8.2"` you have to pull the `entry` property if it's set to an empty object so it defaults to a function within karma-webpack
  • Loading branch information
gyandeeps authored and joshwiens committed Jan 14, 2017
1 parent 1e0224c commit e6a3cb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/karma-webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function Plugin(
// Webpack 2.1.0-beta.7+ will throw in error if both entry and plugins are not specified in options
// https://github.com/webpack/webpack/commit/b3bc5427969e15fd3663d9a1c57dbd1eb2c94805
if (!webpackOptions.entry) {
webpackOptions.entry = {}
webpackOptions.entry = function(){return {}}
};

if (!webpackOptions.output) {
Expand Down

0 comments on commit e6a3cb7

Please sign in to comment.