diff --git a/examples/simple-todo/index.js b/examples/simple-todo/index.js index e61b8fe..95d9422 100644 --- a/examples/simple-todo/index.js +++ b/examples/simple-todo/index.js @@ -1,6 +1,6 @@ import React from 'react'; import ReactDOM from 'react-dom'; -import mobx from 'mobx'; +import * as mobx from 'mobx'; import mobxReact from 'mobx-react'; import remotedev from 'mobx-remotedev/lib/dev'; diff --git a/src/dev.js b/src/dev.js index b4e58d4..53e41c9 100644 --- a/src/dev.js +++ b/src/dev.js @@ -1,4 +1,4 @@ -import mobx from 'mobx'; +import * as mobx from 'mobx'; import spy from './spy'; import getDecorator from './getDecorator'; diff --git a/src/getDecorator.js b/src/getDecorator.js index 0ce7c1b..60253dc 100644 --- a/src/getDecorator.js +++ b/src/getDecorator.js @@ -1,4 +1,4 @@ -import mobx from 'mobx'; +import * as mobx from 'mobx'; export default function getDecorator(func) { return (storeOrConfig, config) => { diff --git a/src/monitorActions.js b/src/monitorActions.js index e9a5b06..7c0652d 100644 --- a/src/monitorActions.js +++ b/src/monitorActions.js @@ -1,4 +1,4 @@ -import mobx from 'mobx'; +import * as mobx from 'mobx'; import { stringify, parse } from 'jsan'; import { getMethods, evalMethod } from 'remotedev-utils'; import { silently, setValue } from './utils'; diff --git a/src/spy.js b/src/spy.js index 90de2b3..f24fd51 100644 --- a/src/spy.js +++ b/src/spy.js @@ -1,4 +1,4 @@ -import mobx from 'mobx'; +import * as mobx from 'mobx'; import { connectViaExtension } from 'remotedev'; import { createAction, getName } from './utils'; import { isFiltered } from './filters'; diff --git a/src/utils.js b/src/utils.js index aba0f86..83832be 100644 --- a/src/utils.js +++ b/src/utils.js @@ -1,4 +1,4 @@ -import mobx from 'mobx'; +import * as mobx from 'mobx'; const getPayload = (change) => { const { added, addedCount, index, removed, removedCount } = change;