From 628655a0e714ebd2032ef44f373a31e299f059e7 Mon Sep 17 00:00:00 2001 From: Andrey Kogut Date: Fri, 9 Jun 2017 23:25:28 +0300 Subject: [PATCH] Dropped using module.exports for devtools --- src/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 0bcdf2fc..66c3e61d 100644 --- a/src/index.js +++ b/src/index.js @@ -40,6 +40,8 @@ export const onError = fn => errorsReporter.on(fn); export default exports; /* DevTool support */ +import { renderReporter, componentByNodeRegistery, trackComponents } from './observer'; if (typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ === 'object') { - __MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobxReact(exports, mobx) + const mobxReact = { renderReporter, componentByNodeRegistery, trackComponents }; + __MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobxReact(mobxReact, mobx) }