From e24a5add4eaa7a3b32f5c1bd2bbd1205b0b05047 Mon Sep 17 00:00:00 2001 From: jakub-g Date: Tue, 22 Jan 2019 16:44:48 +0100 Subject: [PATCH] fix(karma-webpack): Regression in multi-compiler mode (#390) --- package.json | 1 + src/karma-webpack.js | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index cf94332..d4644c7 100644 --- a/package.json +++ b/package.json @@ -43,6 +43,7 @@ "dependencies": { "async": "^2.0.0", "loader-utils": "^1.1.0", + "lodash.clone": "^4.5.0", "source-map": "^0.5.6", "webpack-dev-middleware": "^3.2.0" }, diff --git a/src/karma-webpack.js b/src/karma-webpack.js index aa3b403..dfdc472 100644 --- a/src/karma-webpack.js +++ b/src/karma-webpack.js @@ -7,9 +7,7 @@ const os = require('os'); const path = require('path'); -function clone(obj) { - return Object.assign({}, obj); -} +const clone = require('lodash.clone') const async = require('async'); const webpack = require('webpack'); const WebpackDevMiddleware = require('webpack-dev-middleware');