<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Combining Modules in Require.js</title>
	<atom:link href="http://lostechies.com/johnteague/2012/12/14/combining-modules-in-require-js/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostechies.com/johnteague/2012/12/14/combining-modules-in-require-js/</link>
	<description></description>
	<lastBuildDate>Mon, 03 Jun 2013 06:05:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: Clark Pan</title>
		<link>http://lostechies.com/johnteague/2012/12/14/combining-modules-in-require-js/#comment-198</link>
		<dc:creator>Clark Pan</dc:creator>
		<pubDate>Mon, 17 Dec 2012 06:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/johnteague/?p=139#comment-198</guid>
		<description>That looks about right. I don&#039;t think the optimiser could inline those modules as then you wouldn&#039;t be able to reuse them in other parts of the application.

Thanks for the tip.</description>
		<content:encoded><![CDATA[<p>That looks about right. I don&#8217;t think the optimiser could inline those modules as then you wouldn&#8217;t be able to reuse them in other parts of the application.</p>
<p>Thanks for the tip.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Teague</title>
		<link>http://lostechies.com/johnteague/2012/12/14/combining-modules-in-require-js/#comment-197</link>
		<dc:creator>John Teague</dc:creator>
		<pubDate>Mon, 17 Dec 2012 06:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/johnteague/?p=139#comment-197</guid>
		<description>It doesn&#039;t inline them, if that&#039;s what you mean.  It does combine them in one file however.

I ran r.js with this configuration:
({    baseUrl: &quot;.&quot;,    
paths:{
			&quot;jquery&quot;: &quot;jquery-1.7.2.min&quot;,
			&quot;underscore&quot;: &quot;underscore-min&quot;,
			&quot;jqueryUI&quot;: &quot;jqueryui-min&quot;,
			&quot;bootstrap&quot;: &quot;bootstrap&quot;,
			&quot;EventEmitter2&quot;: &quot;eventemitter2&quot;,
			&quot;kinetic&quot;: &quot;kinetic-min&quot;,
			&quot;sylvester&quot;: &quot;sylvester&quot;
		},
    name: &quot;commands&quot;,
    out: &quot;commands-built.js&quot;
})

And it included the resize module and the rotate module in the commands-built.js class, along with all of the other required external files.

It does however convert the require statements to the array of dependencies.  This is the output for that file.

define(&quot;commands&quot;,[&quot;require&quot;,&quot;ResizeCommand&quot;,&quot;rotate&quot;], function(e){
		return{
			resize:e(&quot;ResizeCommand&quot;),
			rotate:e(&quot;rotate&quot;)
		}
	})

This is described in the documentation as a necessary step, since some older browsers do not support the function calls they using during runtime.  Refer to the documentation link in the post to read more about it.</description>
		<content:encoded><![CDATA[<p>It doesn&#8217;t inline them, if that&#8217;s what you mean.  It does combine them in one file however.</p>
<p>I ran r.js with this configuration:<br />
({    baseUrl: &#8220;.&#8221;,   <br />
paths:{<br />
			&#8220;jquery&#8221;: &#8220;jquery-1.7.2.min&#8221;,<br />
			&#8220;underscore&#8221;: &#8220;underscore-min&#8221;,<br />
			&#8220;jqueryUI&#8221;: &#8220;jqueryui-min&#8221;,<br />
			&#8220;bootstrap&#8221;: &#8220;bootstrap&#8221;,<br />
			&#8220;EventEmitter2&#8243;: &#8220;eventemitter2&#8243;,<br />
			&#8220;kinetic&#8221;: &#8220;kinetic-min&#8221;,<br />
			&#8220;sylvester&#8221;: &#8220;sylvester&#8221;<br />
		},<br />
    name: &#8220;commands&#8221;,<br />
    out: &#8220;commands-built.js&#8221;<br />
})</p>
<p>And it included the resize module and the rotate module in the commands-built.js class, along with all of the other required external files.</p>
<p>It does however convert the require statements to the array of dependencies.  This is the output for that file.</p>
<p>define(&#8220;commands&#8221;,["require","ResizeCommand","rotate"], function(e){<br />
		return{<br />
			resize:e(&#8220;ResizeCommand&#8221;),<br />
			rotate:e(&#8220;rotate&#8221;)<br />
		}<br />
	})</p>
<p>This is described in the documentation as a necessary step, since some older browsers do not support the function calls they using during runtime.  Refer to the documentation link in the post to read more about it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clark Pan</title>
		<link>http://lostechies.com/johnteague/2012/12/14/combining-modules-in-require-js/#comment-196</link>
		<dc:creator>Clark Pan</dc:creator>
		<pubDate>Sun, 16 Dec 2012 22:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/johnteague/?p=139#comment-196</guid>
		<description>Do you know well this works with the optimizer? Would it optimize those modules into the Commands module?</description>
		<content:encoded><![CDATA[<p>Do you know well this works with the optimizer? Would it optimize those modules into the Commands module?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
