Using Rollup for Angular 2's AoT compiler and importing Moment.js : <p>I'm trying to follow the <a href="https://angular.io/docs/ts/latest/cookbook/aot-compiler.html">official AoT guide</a> for Angular 2, and I'm using Moment.js in my application. Moment.js is on my <em>packages.json</em> file, and I'm using version 2.15.0. I've been importing it like this so far:</p>

<pre><code>import * as moment from 'moment';
</code></pre>

<p>But when I get to the part where I have to run rollup, I end up with the following error:</p>

<blockquote>
  <p>Cannot call a namespace ('moment')</p>
</blockquote>

<p>Which appears to be related to the way I import moment according to <a href="https://github.com/rollup/rollup/issues/670">this</a>. So, how am I supposed to do this?
I can't seem to import moment any other way. If I use</p>

<pre><code>import moment from 'moment'
</code></pre>

<p>I get the compile error</p>

<blockquote>
  <p>External module ''moment'' has no default export</p>
</blockquote>
