From ffbb530f81cdbd99f2dd483ff8571cbe2519a035 Mon Sep 17 00:00:00 2001 From: wesssel Date: Wed, 10 Jan 2018 18:07:46 +0900 Subject: [PATCH] load merge from lodash instead of whole module --- src/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.js b/src/utils.js index f46983fb..76579bfa 100644 --- a/src/utils.js +++ b/src/utils.js @@ -6,7 +6,7 @@ */ (function() { - var lodash = require('lodash'); + var merge = require('lodash/merge'); function Utils() { } @@ -43,7 +43,7 @@ Utils.prototype.safeConfig = function(cfg, defaultConfig) { var newCfg = {}; - lodash.merge(newCfg, defaultConfig, cfg); + merge(newCfg, defaultConfig, cfg); return newCfg; };