I use BundleTransformer.Core 1.9.25. I have included angular-animate.js in bundle. But in generated bundle file I saw the error:
/* Minification failed. Returning unminified contents.
(402,118-125): run-time error JS1019: Can't have 'break' outside of loop: break a
The reason is that the bundle uses angular-animate.min.js instead of angular-animate.js. When I delete angular-animate.min.js file, it uses angular-animate.js and there is not errors.
Web.config contains:
<bundleTransformer xmlns="http://tempuri.org/BundleTransformer.Configuration.xsd">
<core>
<js usePreMinifiedFiles="false">
<translators>
<add name="NullTranslator" type="BundleTransformer.Core.Translators.NullTranslator, BundleTransformer.Core" enabled="false" />
</translators>
<minifiers>
<add name="NullMinifier" type="BundleTransformer.Core.Minifiers.NullMinifier, BundleTransformer.Core" />
</minifiers>
<fileExtensions>
<add fileExtension=".js" assetTypeCode="JavaScript" />
</fileExtensions>
</js>
</core>
</bundleTransformer>
As you see usePreMinifiedFiles=false
attribute doesn't prevent usage of existing *.min.js files.