text: import 'babel-polyfill';
  import { createStore, applyMiddleware, compose } from 'redux';
  import rootReducer from 'reducers';
  import createSagaMiddleware from 'redux-saga';
  
  const sagaMiddleware = createSagaMiddleware();
  const finalCreateStore = compose(
  	applyMiddleware(sagaMiddleware),
  	window.devToolsExtension ? window.devToolsExtension() : f => f
  )(createStore);
  
  export default function configureStore(initialState) {
  	const store = finalCreateStore(rootReducer, initialState);
  
  	if (module.hot) {
  		module.hot.accept('../reducers', () => {
  			//eslint-disable-next-line
  			const nextRootReducer = require('../reducers').default;
  			store.replaceReducer(nextRootReducer);
  		});
  	}
  
  	return store;
  }
  