title: Using create react app, and having ES6 dependencies
body: <p>I wrote an npm package <code>blokus</code> which use ES6 syntax.</p>
  
  <p>I used <code>create-react-app</code> to start a project <code>web-blokus</code>, which depends on <code>blokus</code>.</p>
  
  <p>I can run <code>npm start</code> with no errors, and view my <code>web-blokus</code> app in my browser, and it has all the functionality from using the <code>blokus</code> package.</p>
  
  <p>The problem is that I get an UglifyJS error when running <code>npm build</code>.</p>
  
  <pre><code>static/js/main.8afd34e2.js from UglifyJs
  SyntaxError: Name expected [./~/blokus/blokus/blokus.js:3,0]
  </code></pre>
  
  <p>It appears there is a known situation with UglifyJS not supporting ES6 dependencies (a few relevant issue threads <a href="https://github.com/facebookincubator/create-react-app/issues/984" rel="noreferrer">here</a> and <a href="https://github.com/facebookincubator/create-react-app/issues/1023" rel="noreferrer">here</a>). But I read through these threads as well as a handful of others and I was left pretty confused as to what was planning to be updated and what people were doing as workarounds.</p>
  
  <p>So I wanted to</p>
  
  <p>1) confirm that <code>create-react-app</code> will not work out of the box (once you go to <code>npm build</code>) if your app has any ES6 dependencies</p>
  
  <p>2) ask what people are doing to fix / bypass the issue (do I have to eject, and swap something in for UglifyJS?)</p>
  
  <p>Since <code>create-react-app</code> and ES6 are now so popular, I assume I'm either misunderstanding the limitation, or a standard method of dealing with this limitation is discussed and known.</p>