]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
refactor: clear devtools from cjs
authorEduardo San Martin Morote <posva13@gmail.com>
Tue, 29 Sep 2020 08:48:01 +0000 (10:48 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Tue, 29 Sep 2020 08:48:01 +0000 (10:48 +0200)
src/store.ts

index 7832df2182e1eb386740490e3b891f74045acc56..83a537c8512ba1c0fbc7f64e858282c22a3eac3f 100644 (file)
@@ -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)