diff --git a/CHANGELOG.md b/CHANGELOG.md index 14567cb..71e46ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,2 +1,5 @@ +## 1.1.0 +* remove environment check for developer tools + ## 1.0.0 * release diff --git a/package.json b/package.json index 4371a86..49760eb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redux-dynamic", - "version": "1.0.0", + "version": "1.1.0", "description": "Allow add or remove redux modules dynamically", "main": "lib/index.js", "scripts": { diff --git a/src/configure-store.js b/src/configure-store.js index 5a8c278..dd484bc 100644 --- a/src/configure-store.js +++ b/src/configure-store.js @@ -1,6 +1,5 @@ import { createStore, applyMiddleware, compose } from 'redux' -const devEnv = process && process.env && process.env.NODE_ENV !== 'production' const configureStore = ({ name, withDevTools, @@ -11,7 +10,7 @@ const configureStore = ({ const middlewares = applyMiddleware(dynamicMiddlewares) // eslint-disable-next-line no-underscore-dangle const devTools = withDevTools && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ - const composeEnhancers = devEnv && devTools ? devTools({ name }) : compose + const composeEnhancers = devTools ? devTools({ name }) : compose const enhancers = composeEnhancers(middlewares) const store = createStore(reducer, initial, enhancers)