text: import '@babel/polyfill';
  
  import React from 'react';
  import ReactDOM from 'react-dom';
  import { Provider } from 'react-redux';
  import { ConnectedRouter } from 'connected-react-router';
  import history from 'utils/history';
  
  import App from 'containers/App';
  
  import '!file-loader?name=[name].[ext]!./images/favicon.ico';
  import 'file-loader?name=.htaccess!./.htaccess';
  /* eslint-enable import/no-unresolved, import/extensions */
  
  import configureStore from './configureStore';
  
  const initialState = {};
  const store = configureStore(initialState, history);
  const MOUNT_NODE = document.getElementById('app');
  
  const render = () => {
    ReactDOM.render(
      <Provider store={store}>
        <ConnectedRouter history={history}>
          <App />
        </ConnectedRouter>
      </Provider>,
      MOUNT_NODE,
    );
  };
  
  if (module.hot) {
    // Hot reloadable React components and translation json files
    // modules.hot.accept does not accept dynamic dependencies,
    // have to be constants at compile-time
    module.hot.accept(['containers/App'], () => {
      ReactDOM.unmountComponentAtNode(MOUNT_NODE);
      render();
    });
  }
  
  // Chunked polyfill for browsers without Intl support
  render();
  
  // Install ServiceWorker and AppCache in the end since
  // it's not most important operation and if main code fails,
  // we do not want it installed
  if (process.env.NODE_ENV === 'production') {
    require('offline-plugin/runtime').install(); // eslint-disable-line global-require
  }
  