Permalink
Browse files

fix(config): allow CoffeeScript 1.7 to be used

CoffeeScript 1.7 requires a register call to be made. This change is still backwards compatible with older versions of CS because the needed part, the require, is still done. The register function fails but it is wrapped in a try catch block so it fails silently.
  • Loading branch information...
1 parent e6e1da8 commit a1583decd97438a241f99287159da2948eb3a95f @eddiemonge eddiemonge committed Jan 29, 2014
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/config.js
View
@@ -7,7 +7,9 @@ var constant = require('./constants');
// Coffee is required here to enable config files written in coffee-script.
// It's not directly used in this file.
-require('coffee-script');
+try {
+ require('coffee-script').register();
+} catch (e) {}
// LiveScript is required here to enable config files written in LiveScript.
// It's not directly used in this file.

0 comments on commit a1583de

Please sign in to comment.