Skip to content

Commit

Permalink
Fixed coffeescript failing to compile when coffeescript npm module is
Browse files Browse the repository at this point in the history
installed but coffee-script isn't
  • Loading branch information
rwky committed Sep 19, 2017
1 parent 883c0ce commit c52822c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/parsers/coffee.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@
2016-03-09: Initital release
*/
var
mixobj = require('./_utils').mixobj,
mixobj = require('./_utils').mixobj

var parser
try {
parser = require('coffee-script')
} catch (e) {
parser = require('coffeescript')
}

var defopts = {
bare: true
Expand Down

0 comments on commit c52822c

Please sign in to comment.