title: AWS SDK gives 'Uncaught SyntaxError: Unexpected token <' in React
body: <p>I keep getting an error in main.js every time I do 'npm run build':</p>
  
  <pre><code>Uncaught SyntaxError: Unexpected token &lt;
  </code></pre>
  
  <p>It disappears once I refresh the page. I've done some debugging and I found out that there are two libraries which causes that issue:</p>
  
  <pre><code>"aws-sdk": "^2.295.0"
  </code></pre>
  
  <p>and</p>
  
  <pre><code>"react-data-export": "^0.4.2"
  </code></pre>
  
  <p>If one of them is imported to any js file, I get this error. Any ideas how to fix that?</p>