title: JS bundles do not render without EnableOptimization set to true
body: <p>I don't know if I'm doing something wrong but it's probably a bug inside MVC4. I wonder how can I fix this?</p>
  
  <h2>Working scenario</h2>
  
  <pre><code>public class BundleConfig
  {
      public static void RegisterBundles(BundleCollection bundles)
      {
          ScriptBundle scriptBundle = new ScriptBundle("~/js");
          string[] scriptArray =
          {
              "~/content/plugins/jquery/jquery-1.8.2.min.js",
              "~/content/plugins/jquery/jquery-ui-1.9.0.min.js",
              "~/content/plugins/jquery/jquery.validate.min.js",
              "~/content/plugins/jquery/jquery.validate.unobtrusive.min.js",
              "~/content/plugins/bootstrap/js/bootstrap.min.js",
          };
          scriptBundle.Include(scriptArray);
          scriptBundle.IncludeDirectory("~/content/js", "*.js");
          bundles.Add(scriptBundle);
  
          BundleTable.EnableOptimizations = true;
      }
  }
  </code></pre>
  
  <p><code>@Scripts.Render("~/js")</code>
  <br />
  <em>Converts to (e.g. IT WORKS!)</em>
  <br />
  <code>&lt;script src="/js?v=VeCPNK561DZp34yjmWbLrNM35Kf6gaNDl0xsMMC25BQ1"&gt;&lt;/script&gt;</code></p>
  
  <h2>Not so much working scenario</h2>
  
  <pre><code>public class BundleConfig
  {
      public static void RegisterBundles(BundleCollection bundles)
      {
          ScriptBundle scriptBundle = new ScriptBundle("~/js");
          string[] scriptArray =
          {
              "~/content/plugins/jquery/jquery-1.8.2.min.js",
              "~/content/plugins/jquery/jquery-ui-1.9.0.min.js",
              "~/content/plugins/jquery/jquery.validate.min.js",
              "~/content/plugins/jquery/jquery.validate.unobtrusive.min.js",
              "~/content/plugins/bootstrap/js/bootstrap.min.js",
          };
          scriptBundle.Include(scriptArray);
          scriptBundle.IncludeDirectory("~/content/js", "*.js");
          bundles.Add(scriptBundle);
  
          // BundleTable.EnableOptimizations = true; // I could set it to 'false' for same result, it's false by default
      }
  }
  </code></pre>
  
  <p><code>@Scripts.Render("~/js")</code>
  <br />
  <em>Converts to (e.g. IT DOES NOT WORK!)</em>
  <br />
  <code>(nothing, couple of empty break lines)</code></p>