From d9796be0bbb668fcb254379989e2e032e46bb110 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Sun, 13 Aug 2017 22:19:37 +0200 Subject: [PATCH] Add strict mode in development mode by default --- lib/app/store.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/app/store.js b/lib/app/store.js index 553ad93cac..d1e59efcd6 100644 --- a/lib/app/store.js +++ b/lib/app/store.js @@ -45,7 +45,9 @@ if (typeof storeData !== 'function') { // createStore export const createStore = storeData instanceof Function ? storeData : () => { - return new Vuex.Store(Object.assign({}, storeData, { + return new Vuex.Store(Object.assign({ + strict: (process.env.NODE_ENV !== 'production'), + }, storeData, { state: storeData.state instanceof Function ? storeData.state() : {} })) }