Skip to content

Commit c1fcf42

Browse files
feat(config): allow to use newer versions of CoffeeScript
CoffeeScript lost the hyphen in the module name about 9 months ago, all the new versions are going to be released as coffeescript not the coffee-script
1 parent feadb7b commit c1fcf42

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ try {
1818
COFFEE_SCRIPT_AVAILABLE = true
1919
} catch (e) {}
2020

21+
// CoffeeScript lost the hyphen in the module name a long time ago, all new version are named this:
22+
try {
23+
require('coffeescript').register()
24+
COFFEE_SCRIPT_AVAILABLE = true
25+
} catch (e) {}
26+
2127
// LiveScript is required here to enable config files written in LiveScript.
2228
// It's not directly used in this file.
2329
try {

0 commit comments

Comments
 (0)