I have a website running on MVC4 using the following javascript libraries.
jQuery, jQueryValidate, Bootstrap, FineUploader, MaskedInput, Knockout and Modernizr. I also have my app specific javascript in there as well. They are all loaded using the Script Bundling feature from the System.Web.Optimization
namespace. My bundle looks like this.
bundles.Add(new ScriptBundle("~/bundles/scripts").Include(
"~/Scripts/jquery-1.7*",
"~/Scripts/modernizr.*",
"~/Scripts/bootstrap*",
"~/Scripts/jquery.validate.*",
"~/Scripts/jquery.maskedinput-1.3.*",
"~/Scripts/MyApp*",
"~/Scripts/jquery.unobtrusive*",
"~/Scripts/knockout-*",
"~/Scripts/jquery.fineuploader-3.0.js"));
But for some reason while the site works normally on my dev system and when testing, it fails in production with javascript errors. There error makes no sense to me...
Uncaught ReferenceError: options is not defined
Now when I check the javascript file everything is of course minified and compressed so no luck deciphering anything from that. Has anyone else encountered odd behavior like this from Bundling?