title: Webpack: How to exclude entry file itself?
body: <p>I'm new to Webpack and am looking for an option to exclude my single entry from the bundling.</p>
  
  <p>So my <code>webpack.config.js</code> right now looks simply like this:</p>
  
  <pre><code>module.exports = {
      entry: './all.js',
      output: {
          path: 'dist',
          filename: 'all.bundle.js'
      }
  };
  </code></pre>
  
  <p><code>all.js</code> is already a bundle created by the TypeScript transpiler, but without the third-party dependencies. I prefer to have the rest of the bundle - the third party dependencies - be bundled separately by Webpack as then the TypeScript is the only build I will have to make after the vast majorities of changes during development.</p>
  
  <p>So far, calling <code>webpack</code> correctly builds a bundle of all the dependencies, but it includes the entry.</p>
  
  <p>So is there a way to exclude the entry?</p>