import { createStore, applyMiddleware, compose } from 'redux';
import thunkMiddleware from 'redux-thunk';

import projectReducer from './projectReducer';
const middleware = require(__PROJECT__ + '/config/middleware').default;

const createStoreWithMiddleware = compose(
  applyMiddleware(thunkMiddleware)
)(createStore);

export default function createAppStore(data) {
  return createStoreWithMiddleware(projectReducer, data);
}

@@ -59,51 +59,8 @@
 ux';
-%0Aimport thunkMiddleware from 'redux-thunk';
 %0A%0Aim
@@ -242,14 +242,12 @@
 are(
-thunkM
+...m
 iddl

Fix prod configureStore not correctly setting middleware