ded/domready — pull request #40 by ThibWeb (2014-10-15 00:24:52+00:00)
Title: Add missing semicolon in build output

> Disclaimer: this is probably one of the worst possible fixes, but it does the job.

There is a bug / misleading feature in the smoosh tool, which removes the semicolon at the end of the compressed JavaScript output. This is perfectly fine when the compressed file (here, `ready.min.js`) is used as is, but it can break the code if the file is concatenated to other JS code.

Here is [a fiddle](http://jsfiddle.net/5sxsk147/) which demonstrates the issue and the fix. This should be directly fixed in smoosh, so:

- I submitted a [PR to fat/smoosh](https://github.com/fat/smoosh/pull/23), with a fix directly taken from Uglify's code (which switched to adding the semicolon some time ago, but not in smoosh's scenario).
- Here is another PR for domready. The fix is quite terrible but I'd rather submit those changes over just a simple issue.

Hope you find this useful,