Skip to content

Instantly share code, notes, and snippets.

@estk
Created August 21, 2013 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save estk/6298222 to your computer and use it in GitHub Desktop.
Save estk/6298222 to your computer and use it in GitHub Desktop.
Don't mangle "$super".
@@ -527,7 +527,7 @@ _.extend(Bundle.prototype, {
var combinedCode = codeParts.join('\n;\n');
var finalCode = uglify.minify(
- combinedCode, {fromString: true, compress: {drop_debugger: false}}).code;
+ combinedCode, {fromString: true, compress: {drop_debugger: false}, mangle: {except: ["$super"]}}).code;
addFile('js', finalCode);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment