nolanlawson / optimize-js

Optimize a JS file for faster parsing (UNMAINTAINED)
https://nolanlawson.github.io/optimize-js
Apache License 2.0
3.75k stars 104 forks source link

Don't call process.exit(0) on success. #11

Closed ymichael closed 8 years ago

ymichael commented 8 years ago

This causes commands like optimize-js large-file.js to not output the full output to stdout.

To repro:

$ curl -O https://code.jquery.com/jquery-3.0.0.min.js
$ optimize-js jquery-3.0.0.min.js  | wc
// 3     982   65536
$ optimize-js jquery-3.0.0.min.js > foo.js
$ cat foo.js | wc
//  5    1312   86638
nolanlawson commented 8 years ago

Whoops thanks, that's a bad bug!

nolanlawson commented 8 years ago

/me forgot that console.log() is async now

nolanlawson commented 8 years ago

fixed in 1.0.1