title: Simplest way to start non-react webworker from reactJS
body: <p>I have written webworker code responsible for some CPU intensive task. The worker works outside reactJS app, but trying to load it in reactJS project fails, because reactJS does not allow access to worker's JS file.</p>
  
  <p>I found this code and tried it:</p>
  
  <pre><code>const worker = require("worker!./browser-worker.js");
  </code></pre>
  
  <p>And I got this error:</p>
  
  <pre><code>./src/browser-ui.js
    Line 5:  Unexpected '!' in 'worker!./browser-worker.js'. Do not use import syntax to configure webpack loaders  import/no-webpack-loader-syntax
  </code></pre>
  
  <p>I would like reactJS to run webpack on the worker code (it uses ES6 modules). How can I start web worker in reactJS?</p>