Skip to content

Commit b6b09e2

Browse files
author
kubk
authored
Exclude remotedev from production build
1 parent f1d280c commit b6b09e2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib/mobx/add-to-devtools.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
const spy = require('mobx-remotedev/lib/spy').default;
22

33
export const addToDevtools = (store: object) => {
4-
spy(store, { global: true, name: store.constructor.name });
4+
if (process.env.NODE_ENV !== 'production') {
5+
spy(store, { global: true, name: store.constructor.name });
6+
}
57
};

0 commit comments

Comments
 (0)