Created by: davewasmer
Coffeescript 1.7+ no longer automatically registers file extensions with Node. To do so, you must call .register()
:
coffeescript = require('coffee-script')
coffeescript.register()
I added a hack-ish solution: just check if the module being required is "coffee-script"
(and >= v1.7.0
), and if so, call register
.
I realize this isn't the cleanest implementation, but thought I would start the issue with some kind of solution at least.