fix(cli): don't mutate options export (#5865)

This commit is contained in:
Pooya Parsa 2019-06-04 19:18:06 +04:30 committed by GitHub
parent f2c088978e
commit e4fd6fee7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,6 +46,9 @@ export async function loadNuxtConfig(argv) {
} }
} }
// Don't mutate options export
options = Object.assign({}, options)
// Keep _nuxtConfigFile for watching // Keep _nuxtConfigFile for watching
options._nuxtConfigFile = nuxtConfigFile options._nuxtConfigFile = nuxtConfigFile