title: How to include a worker/process file with webpack
body: <p>I have a file that creates child processes, the code is similar to this:</p>
  
  <pre><code>var cp = require('child_process');
  
  function process () {
    return cp.fork('./worker');
  }
  
  module.exports(process);
  </code></pre>
  
  <p>But <code>./worker</code> doesn't seem to be included in the bundle. Which causes the following error when running the <code>process</code> function:</p>
  
  <pre><code>Error: Cannot find module 'C:\Users\USER\Documents\GitHub\PROJECT\worker'
      at Function.Module._resolveFilename (module.js:485:15)
      at Function.Module._load (module.js:437:25)
      at Function.Module.runMain (module.js:605:10)
      at startup (bootstrap_node.js:158:16)
      at bootstrap_node.js:575:3
  module.js:487
      throw err;
      ^
  </code></pre>
  
  <p>How can I make sure worker files are bundled as well? I want my whole project in óne file. </p>