From 4f38183b71040a34bdba6668963f0700f6836762 Mon Sep 17 00:00:00 2001 From: Jan Vlnas Date: Mon, 28 Dec 2020 16:39:17 +0100 Subject: [PATCH] Set clone: false for deepmerge --- lib/next-plugin/nextPlugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/next-plugin/nextPlugin.js b/lib/next-plugin/nextPlugin.js index 115a0cc..37b9bde 100644 --- a/lib/next-plugin/nextPlugin.js +++ b/lib/next-plugin/nextPlugin.js @@ -47,7 +47,7 @@ const defaults = { * @returns {object} */ module.exports = function withImg(pluginConfig = {}, nextComposePlugins = {}) { - pluginConfig = deepmerge.all([{}, defaults, pluginConfig], { arrayMerge: overwriteMerge }) + pluginConfig = deepmerge.all([{}, defaults, pluginConfig], { arrayMerge: overwriteMerge, clone: false }) return { ...pluginConfig,