Permalink
Browse files

Merge branch 'master' of github.com:clover/require

  • Loading branch information...
2 parents e371f63 + 33b8ee3 commit 49dd206928d2e11dbb9ca818647b84635ed44efc @marcuswestin committed Apr 12, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 compiler.js
View
@@ -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 = 100
+ }
+
var uglifyJS = require('uglify-js')
var ast = uglifyJS.parser.parse(code, opts.strict_semicolons),

0 comments on commit 49dd206

Please sign in to comment.