Skip to content

Commit

Permalink
Add bare option for compiling CoffeeScript to remove [top-level funct…
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGiedymin committed Apr 13, 2012
1 parent ca5990f commit 6452d98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/coffeescript/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ Package.register_extension(
serve_path = serve_path + '.js';

var contents = fs.readFileSync(source_path);
contents = new Buffer(coffee.compile(contents.toString('utf8')));
var options = {bare: true};

contents = new Buffer( coffee.compile(contents.toString('utf8'), options) );
// XXX report coffee compile failures better?

bundle.add_resource({
Expand Down

0 comments on commit 6452d98

Please sign in to comment.