npm karma-webpack 2.0.0

latest releases: 5.0.1, 5.0.0, 5.0.0-alpha.6...
7 years ago

Bug Fixes

  • config: webpack rc4 schema enforcment (fixes #193) (2723439)

BREAKING CHANGES

  • config: Remove entry:{} from test configurations

When updating to "webpack": "2.2.0-rc.4" & "karma-webpack": "2.0.0" you have to remove the entry property if it's set to an empty object so it defaults to a function within karma-webpack.

As part of the schema enforcement, in you webpack configuration you can't pass webpackConfig.entry and empty object. Historically this has been a common practice in many test configs.

You can on the other hand pass webpackConfig.entry a function. So in the case where people were using entry: {} they simply need to remove it. For those that don't need / have an entry target in their config, removing it allows karma-webpack to use it's default which under the hood assigns a function that returns entry: {} to webpackConfig.entry.

Don't miss a new karma-webpack release

NewReleases is sending notifications on new releases.