playframework/Play20 — pull request #64 by jackcviers (2012-01-03 18:53:14+00:00)
Title: Play20 ticket45

This pull request fixes Play 2.0 ticket 45 - Google Closure Compiler require issues
https://play.lighthouseapp.com/projects/82401/tickets/45

### Description ###
This pull request fixes ticket 45 by altering the *jscompile.JavascriptCompiler. The node+dependencies list has distinct applied to it at the val dependencies line. On the next line, val flatDependencies is assigned the value of the tail of the dependencies list prepended to the head of the dependencies list. This puts the required includes before the script (the home node) calling them.

The additional bug in the comments about the require statements not being stripped from the generated code is fixed by applying the SourceTree.requireRe.replaceAllIn to both the unminified generated fullSource and the compler generated minified source before return.