From 257fcb3f41a07776b56950d74fab27c3ac81214d Mon Sep 17 00:00:00 2001 From: Filipp Riabchun Date: Thu, 6 Jun 2019 00:15:05 +0200 Subject: [PATCH] Don't mutate user's babel config In my case, it leads to errors because I use my own babel-loader --- lib/core/src/server/utils/load-custom-babel-config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/src/server/utils/load-custom-babel-config.js b/lib/core/src/server/utils/load-custom-babel-config.js index 0c2ca92967d..7a271713c08 100644 --- a/lib/core/src/server/utils/load-custom-babel-config.js +++ b/lib/core/src/server/utils/load-custom-babel-config.js @@ -46,7 +46,7 @@ function loadFromPath(babelConfigPath) { throw error.js; } - config.babelrc = false; + config = { ...config, babelrc: false }; } if (!config) return null;