How to make chrome devtools to recognise moment.js : <p>I am working on <code>ionic2</code> project. I have just start using <code>moment.js</code> but I have a weird issue.
I have installed in via npm: <code>npm install moment -S</code>.</p>

<p>Then I have used it in my code: </p>

<pre><code>import moment from 'moment'
...
let x = moment()
debugger
</code></pre>

<p>On the console I get this funny issue:</p>

<pre><code>&gt; x
&lt; Moment {_isAMomentObject: true, _isUTC: false, _pf: {…}, _locale: Locale, _d: Wed Jun 27 2018 12:06:23, …}
&gt; y = moment()
&lt; VM770:1 Uncaught ReferenceError: moment is not defined
    at eval (eval at Phase (phase.ts:13), &lt;anonymous&gt;:1:1)
    at new Phase (phase.ts:13)
    at new Stage (stage.ts:10)
    at new HomePage (home.ts:39)
    at createClass (core.es5.js:10795)
    at createDirectiveInstance (core.es5.js:10621)
    at createViewNodes (core.es5.js:11971)
    at createRootView (core.es5.js:11876)
    at callWithDebugContext (core.es5.js:13007)
    at Object.debugCreateRootView [as createRootView] (core.es5.js:12468)
</code></pre>

<p>Why can't I work with moment within the console?</p>
