title: Typescript+AngularJS+Webpack modules without default export
body: <p>I'm using Webpack to bundle AngularJS with Typescript (with the default setup suggested <a href="https://webpack.js.org/guides/webpack-and-typescript/" rel="nofollow noreferrer">here</a>) and I cannot include modules that do not have default exports, such as ui-bootstrap. Modules such as ui-router do not have such problem since their typings mention a default export.</p>
  
  <p>JS code works:</p>
  
  <pre><code>import * as angular from 'angular';
  import router from 'angular-ui-router';
  import uibootstrap from 'angular-ui-bootstrap';
  
  angular.module('app', [uirouter, uibootstrap]);
  </code></pre>
  
  <p>However the same code in Typescript (target: es6, module: es6, all settings same as those mentioned in webpack guide) drops error:</p>
  
  <blockquote>
    <p>Module "node_modules/@types/angular-ui-bootstrap/index" has no default export.</p>
  </blockquote>
  
  <p>Using <code>angular.module('app', [uirouter, 'ui.bootstrap']);</code> instead throws a 'ui.bootstrap' not found error.</p>