Skip to content

Releases: codymikol/karma-webpack

v2.0.1

11 Jan 22:09
Compare
Choose a tag to compare
  • Fix for publishing error

v2.0.0

11 Jan 21:27
Compare
Choose a tag to compare

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.