Skip to content

Commit 7570912

Browse files
caseyWebbRyan Clark
authored and
Ryan Clark
committed
fix: don't error when webpackMiddleware config not provided' (#418)
1 parent 0155062 commit 7570912

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/karma-webpack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function Plugin(
5858
) {
5959
webpackOptions = cloneDeep(webpackOptions);
6060
webpackMiddlewareOptions = cloneDeep(
61-
webpackMiddlewareOptions || webpackServerOptions
61+
webpackMiddlewareOptions || webpackServerOptions || {}
6262
);
6363

6464
const applyOptions = Array.isArray(webpackOptions)

0 commit comments

Comments
 (0)