diff --git a/lib/config.js b/lib/config.js index 32c67bb8e..9d71045cc 100644 --- a/lib/config.js +++ b/lib/config.js @@ -18,6 +18,12 @@ try { COFFEE_SCRIPT_AVAILABLE = true } catch (e) {} +// CoffeeScript lost the hyphen in the module name a long time ago, all new version are named this: +try { + require('coffeescript').register() + COFFEE_SCRIPT_AVAILABLE = true +} catch (e) {} + // LiveScript is required here to enable config files written in LiveScript. // It's not directly used in this file. try {