Fixes bug with the CommonJS wrapper and _.str
authordsc <david.schoonover@gmail.com>
Tue, 21 Feb 2012 18:40:34 +0000 (10:40 -0800)
committerdsc <david.schoonover@gmail.com>
Tue, 21 Feb 2012 18:40:34 +0000 (10:40 -0800)
lib/server/server.co

index 1c15833..982b75c 100755 (executable)
@@ -70,7 +70,13 @@ app.configure ->
     # wrap modules in commonjs closure for browser
     app.use compiler do
         enabled : 'commonjs'
-        src     : [ VAR, WWW, STATIC ]
+        src     : [ STATIC ]
+        dest    : VAR
+        options : commonjs : { drop_path_parts:1, drop_full_ext:false }
+        log_level : LOG_LEVEL
+    app.use compiler do
+        enabled : 'commonjs'
+        src     : [ VAR, WWW ]
         dest    : VAR
         options : commonjs : { drop_path_parts:1, drop_full_ext:true }
         log_level : LOG_LEVEL