/* eslint global-require: 0 */
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import createDebounce from 'redux-debounced';
import rootReducer from '../modules/reducer';
import db from '../db';

const middlewares = [
  createDebounce(),
  thunk.withExtraArgument({ db }),
];

if ('production' !== process.env.NODE_ENV) {
  const createLogger = require('redux-logger');

  middlewares.push(createLogger());
}

const createStoreWithMiddleware = applyMiddleware(...middlewares)(createStore);

export default function configureStore(initialState) {
  return createStoreWithMiddleware(
    rootReducer,
    initialState,
    window.devToolsExtension && window.devToolsExtension()
  );
}

@@ -649,16 +649,94 @@
 lState,%0A
+    'production' !== process.env.NODE_ENV && typeof 'undefined' !== window &&%0A
     wind
@@ -756,18 +756,17 @@
 tension 
-&&
+?
  window.
@@ -784,16 +784,25 @@
 ension()
+ : f =%3E f
 %0A  );%0A%7D%0A

Disable redux devtools in production