Skip to content

Commit

Permalink
refactor: clear devtools from cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Sep 29, 2020
1 parent dc31736 commit 97fa94e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 97fa94e

Please sign in to comment.