title: Creating a web worker inside React
body: <p>I have a React app created with create-react-app, not ejected. I'm trying to use web workers. I've tried the worker-loader package (<a href="https://github.com/webpack-contrib/worker-loader" rel="noreferrer">https://github.com/webpack-contrib/worker-loader</a>).</p>
  
  <p>If I try worker-loader out of the box (<code>import Worker from 'worker-loader!../workers/myworker.js';</code>), I get the error message telling me that Webpack loaders are not supported by Create React App, which I already know.</p>
  
  <p>Would the solution be to eject the app (which I'd prefer not to do) and edit the webpack.config.js or is there some other way of using web workers inside a React app?</p>
  
  <p>EDIT: I have found the solution here: <a href="https://github.com/facebookincubator/create-react-app/issues/1277" rel="noreferrer">https://github.com/facebookincubator/create-react-app/issues/1277</a> (post by yonatanmn)</p>