<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Extract library dependencies for use in controller scripts]]></title><description><![CDATA[<p dir="auto">Hi Jared, installed the latest UI update and now I cannot use moment js in my scripts, I know it's stored somewhere in the condensed files you arranged to help with speeding up load times, but now my controllers fail.</p>
<p dir="auto">How can I extract momentJS for my own components? Do I need to add it as a separate file and load that instead?</p>
]]></description><link>https://forum.mango-os.com/topic/3473/extract-library-dependencies-for-use-in-controller-scripts</link><generator>RSS for Node</generator><lastBuildDate>Fri, 12 Jun 2026 11:04:42 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/3473.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 08 May 2018 04:50:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Extract library dependencies for use in controller scripts on Tue, 08 May 2018 20:23:26 GMT]]></title><description><![CDATA[<p dir="auto">Older versions of moment used to place themselves on the global scope, I believe this was removed in newer versions.</p>
]]></description><link>https://forum.mango-os.com/post/18346</link><guid isPermaLink="true">https://forum.mango-os.com/post/18346</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Tue, 08 May 2018 20:23:26 GMT</pubDate></item><item><title><![CDATA[Reply to Extract library dependencies for use in controller scripts on Tue, 08 May 2018 20:18:16 GMT]]></title><description><![CDATA[<p dir="auto">Ah I never had to define moment-timezone, I was always able to call moment() freely prior to 3.4.<br />
No matter I'll give it a whirl, thanks Jared!</p>
]]></description><link>https://forum.mango-os.com/post/18344</link><guid isPermaLink="true">https://forum.mango-os.com/post/18344</guid><dc:creator><![CDATA[MattFox]]></dc:creator><pubDate>Tue, 08 May 2018 20:18:16 GMT</pubDate></item><item><title><![CDATA[Reply to Extract library dependencies for use in controller scripts on Tue, 08 May 2018 15:29:58 GMT]]></title><description><![CDATA[<p dir="auto">You are talking about for use in a custom/dashboard page yeah?</p>
<p dir="auto">It should work the same as always.</p>
<pre><code>define(['moment-timezone'], function(moment) {
  console.log(moment());
});
</code></pre>
]]></description><link>https://forum.mango-os.com/post/18315</link><guid isPermaLink="true">https://forum.mango-os.com/post/18315</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Tue, 08 May 2018 15:29:58 GMT</pubDate></item></channel></rss>