Skip to content

Commit

Permalink
fix: don't error when webpackMiddleware config not provided' (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyWebb authored and Ryan Clark committed Jun 8, 2019
1 parent 0155062 commit 7570912
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 @@ -58,7 +58,7 @@ function Plugin(
) {
webpackOptions = cloneDeep(webpackOptions);
webpackMiddlewareOptions = cloneDeep(
webpackMiddlewareOptions || webpackServerOptions
webpackMiddlewareOptions || webpackServerOptions || {}
);

const applyOptions = Array.isArray(webpackOptions)
Expand Down

0 comments on commit 7570912

Please sign in to comment.