Skip to content

Commit

Permalink
Merge pull request #11 from pofigizm/devtool
Browse files Browse the repository at this point in the history
remove env check
  • Loading branch information
pofigizm authored Mar 13, 2019
2 parents 587a0ca + a9f0f8a commit 02f79ba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
## 1.1.0
* remove environment check for developer tools

## 1.0.0
* release
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
3 changes: 1 addition & 2 deletions src/configure-store.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { createStore, applyMiddleware, compose } from 'redux'

const devEnv = process && process.env && process.env.NODE_ENV !== 'production'
const configureStore = ({
name,
withDevTools,
Expand All @@ -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)

Expand Down

0 comments on commit 02f79ba

Please sign in to comment.