1.0.7
New in RequireJS.NET v1.0.7
RenderRequireJsSetup accepts multiple config files, merges all paths and shims, will throw error if duplicates are found.
Using this feature, you can create a shared config, and for each MVC area a different file, inside the layout file for each area you can merge the dedicated config with the shared one.
@Html.RenderRequireJsSetup(Url.Content("~/Scripts"),
Url.Content("~/Scripts/require.js"),
new List<string>
{
Server.MapPath("~/RequireJS.shared.config"),
Server.MapPath("~/RequireJS.config")
})