From 8123882e23780dddd02d7501ce2d1e6a6e829dde Mon Sep 17 00:00:00 2001 From: Ricardo Tomasi Date: Tue, 14 May 2013 04:36:56 -0300 Subject: [PATCH] coffee.compile returns an object when sourceMaps are enabled --- adapters/compilers.coffee | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/adapters/compilers.coffee b/adapters/compilers.coffee index 2c661b9..a562eb7 100644 --- a/adapters/compilers.coffee +++ b/adapters/compilers.coffee @@ -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'