After upgrading to Ruby 2.0.0, Uglifier has been producing invalid output when attempting to minify the paper.js source. The offending line of code looks like this after minification:
new!function(){
I've tried configuring a lot of the options, and the only way I can get it to produce valid code is by setting beautify: true, which isn't ideal of course. This is happening within a Rails application.
This doesn't happen for me with same setup. Maybe paper.js was changed and it doesn't trigger the bug. If you have offending code somewhere, you might want to report it directly to UglifyJS.
After upgrading to Ruby 2.0.0, Uglifier has been producing invalid output when attempting to minify the paper.js source. The offending line of code looks like this after minification:
I've tried configuring a lot of the options, and the only way I can get it to produce valid code is by setting beautify: true, which isn't ideal of course. This is happening within a Rails application.