Journal Journal: .NET Optimization Framework Bug
Apparently, the optimization framework (Also known as Bundling & Minification) has a nasty bug in it when doing bundling of javascript. When given a set of files, it first does a simple concatenation of the files together before doing a minification on the result. At first glance that seems to be a fairly obvious thing to do, well, except that if you have a whole line comment as your last line in a javascript file that doesn't end with a CR/LF that is. Unfortunately, that is exactly what some of the more popular minification tools currently do. It'll concatenate the first line of the next javascript file onto the comment line of the last file, and well, things go badly from there.
Supposedly there is a fix coming, but not in time for our latest release. Yay for having to delete all our pre-min'ed files, and recreating them without the debug comment that is typically there to help debug in chrome. Oh well, at least there is a workaround.