Browse files

Add a default max line length value

  • Loading branch information...
1 parent ca547ce commit 941f031e2a36cfcd50508e07415ea19eefcf0d50 @marcuswestin committed Apr 5, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 compiler.js
View
4 compiler.js
@@ -72,6 +72,10 @@ var _compile = function(code, opts, mainModule) {
var code = 'var __require__ = {}\n' + _compileModule(code, opts.basePath, mainModule)
if (opts.minify === false) { return code } // TODO use uglifyjs' beautifier?
+ if (opts.max_line_length == null) {
+ opts.max_line_length = 200
+ }
+
var uglifyJS = require('uglify-js')
var ast = uglifyJS.parser.parse(code, opts.strict_semicolons),

0 comments on commit 941f031

Please sign in to comment.