'use strict';

require('6to5/runtime');
var React = require('react'),
  debug = require('debug'),
  log = debug('bshed:client'),
  app = require('./app');

// needed for onTouchTap
require('react-tap-event-plugin')();

// styles
require('./assets/styles/index.less');

var dehydratedState = window.App; // sent from server
window.React = React; // For chrome dev tool support

if (process.env.NODE_ENV !== 'production')
  debug.enable('*');

log('rehydrating bshed:client');
app.rehydrate(dehydratedState, function (err, context) {
  if (err) throw err;

  var mountNode = document.getElementById('bshed');
  window.context = context;
  log('react rendering');
  React.render(app.getAppComponent()({
    context: context.getComponentContext()
  }), mountNode, function () {
    log('react rendered');
  });

});

'use strict';

var React = require('react'),
  debug = require('debug'),
  log = debug('bshed:client'),
  app = require('./app');

// needed for onTouchTap
require('react-tap-event-plugin')();

// assets
require('./assets/styles/index.less');

var dehydratedState = window.App; // sent from server
window.React = React; // For chrome dev tool support

if (process.env.NODE_ENV !== 'production')
  debug.enable('*');

log('rehydrating bshed:client');
app.rehydrate(dehydratedState, function (err, context) {
  if (err) throw err;

  var mountNode = document.getElementById('bshed');
  window.context = context;
  log('react rendering');
  React.render(app.getAppComponent()({
    context: context.getComponentContext()
  }), mountNode, function () {
    log('react rendered');
  });

});

remove explicit 6to5 runtime call in client app