From 97fa94ebb43251a29979fa76ee58647d9094f181 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Tue, 29 Sep 2020 10:48:01 +0200 Subject: [PATCH] refactor: clear devtools from cjs --- src/store.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/store.ts b/src/store.ts index 7832df21..83a537c8 100644 --- a/src/store.ts +++ b/src/store.ts @@ -226,7 +226,11 @@ export function defineStore< )) ) - if (IS_CLIENT && __DEV__ /*|| __FEATURE_PROD_DEVTOOLS__*/) { + if ( + IS_CLIENT && + __BROWSER__ && + __DEV__ /*|| __FEATURE_PROD_DEVTOOLS__*/ + ) { const app = getClientApp() if (app) { addDevtools(app, store, req) -- 2.47.2