title: Fetch as Google returns blank page with error unexpected token =>
body: <p>I'm currently working on a SPA React app, but when I try to fetch as google I get a blank page with the error <code>Uncaught SyntaxError: Unexpected token =&gt;</code>. I did install babel-polyfill and also imported it as first import. I've been reading and trying multiple things but I can't seem to fix it, anyone experience with this?</p>
  
  <p>The site is <a href="https://sharetune.nl" rel="nofollow noreferrer">https://sharetune.nl</a></p>
  
  <p>The error image is shown below:</p>
  
  <p><a href="https://i.stack.imgur.com/iz0Lg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iz0Lg.png" alt="error"></a></p>
  
  <p>Edit: I tried to fetch as google while my app.js wasn't minified. the error is in this piece of code </p>
  
  <pre><code>const prefix = (items) =&gt; {
    const result = {}
    for (const i in items) {
      result[items[i]] = swalPrefix + items[i]
    }
    return result
  }
  </code></pre>
  
  <p>You can view the app.js file at <a href="http://sharetune.nl/js/app.js" rel="nofollow noreferrer">http://sharetune.nl/js/app.js</a></p>