From e4fd6fee7e2c14546634348b660aaea832e3b0fd Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Tue, 4 Jun 2019 19:18:06 +0430 Subject: [PATCH] fix(cli): don't mutate options export (#5865) --- packages/cli/src/utils/config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/cli/src/utils/config.js b/packages/cli/src/utils/config.js index cad5c1bdc9..331e07527f 100644 --- a/packages/cli/src/utils/config.js +++ b/packages/cli/src/utils/config.js @@ -46,6 +46,9 @@ export async function loadNuxtConfig(argv) { } } + // Don't mutate options export + options = Object.assign({}, options) + // Keep _nuxtConfigFile for watching options._nuxtConfigFile = nuxtConfigFile