title: react-router match does not work after transpiling es6 with babel
body: <p>When running babel-node server.js everything works fine, but when I create a build and transpile my es6 code with babel the match function doesn't find a match and I always get returned the 404 error message. I am using this on my Isomorphic / Universal server. </p>
  
  <p>When I console.log the values in the ES6 version and the transpiled version those are looking the same. </p>
  
  <p>Actual ES6 match code in my server.js</p>
  
  <pre><code>let history = useRouterHistory(useQueries(createMemoryHistory))()
      let routes = createRoutes(history)
      let location = history.createLocation(req.url)
  
      match({ all_routes, location }, (error, redirectLocation, renderProps) =&gt; {
          if (redirectLocation) {
              res.redirect(301, redirectLocation.pathname + redirectLocation.search)
          } else if (error) {
              res.status(500).send(error.message)
          } else if (renderProps == null) {
              res.status(404).send('Not found')
          } else {
  </code></pre>
  
  <p>My .babelrc looks like this:</p>
  
  <pre><code>{
    "presets": ["es2015", 'stage-2',"react"],
    "plugins": [ "transform-object-rest-spread","transform-react-jsx"]
  }
  </code></pre>
  
  <p>My routes file:</p>
  
  <pre><code>const routes = function(){
      return (
          &lt;Router history={browserHistory}&gt;
              &lt;Route path="/" component={App}&gt;
                  &lt;IndexRoute component={Home} /&gt;
                  &lt;Route path="contact"   component={Contact} /&gt;
                  &lt;Route path="login"     component={Login} /&gt; 
                  &lt;Route path="*"         component={NotFound} /&gt;
              &lt;/Route&gt;
          &lt;/Router&gt;
      )
  }
  </code></pre>
  
  <p>When I console.log Routes it looks like this:</p>
  
  <pre><code>{ '$$typeof': Symbol(react.element),
    type: 
     { [Function]
       displayName: 'Route',
       createRouteFromReactElement: [Function: createRouteFromReactElement],
       propTypes: 
        { path: [Object],
          component: [Object],
          components: [Object],
          getComponent: [Object],
          getComponents: [Object] } },
    key: null,
    ref: null,
    props: 
     { path: '/',
       component: { [Function] displayName: 'App' },
       children: 
        [ [Object],
          [Object],
          [Object],
          [Object],
          [Object],
          [Object],
          [Object],
          [Object] ] },
    _owner: null,
    _store: {} }
  </code></pre>