title: Webpack and Typescript `__extends`
body: <p>I write project with help of TypeScript. Project divided into many modules.
  I bundle all modules into one file with Webpack.</p>
  
  <p>For each module-class, which extends from parent class, webpack added TypeScript <code>__extends</code> helper.
  As result - i got many repeated code.</p>
  
  <pre><code>/***/ },
  /* 24 */
  /***/ function(module, exports, __webpack_require__) {
  
  "use strict";
  var __extends = (this &amp;&amp; this.__extends) || function (d, b) {
      for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
      function __() { this.constructor = d; }
      d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  };
  var DeepExtend_1 = __webpack_require__(6);
  
  //...
  
  exports.SafariDetector = SafariDetector;
  
  
  /***/ },
  /* 25 */
  /***/ function(module, exports, __webpack_require__) {
  
  "use strict";
  var __extends = (this &amp;&amp; this.__extends) || function (d, b) {
      for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
      function __() { this.constructor = d; }
      d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  };
  var DeepExtend_1 = __webpack_require__(6);
  
  //...
  
  exports.SafariMobileDetector = SafariMobileDetector;
  </code></pre>
  
  <p>So, any way to fix that?</p>