Skip to content

Commit

Permalink
coffee.compile returns an object when sourceMaps are enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardobeat committed May 14, 2013
1 parent 78d1a70 commit 8123882
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion adapters/compilers.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ module.exports = new Adapter
}

file.read (code) ->
cb coffee.compile code, options
compiled = coffee.compile code, options
if compiled.js?
cb compiled.js, compiled
else
cb compiled

less: (file, cb) ->
less = require 'less'
Expand Down

0 comments on commit 8123882

Please sign in to comment.