mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-16 18:44:56 -05:00
Added an extension on node's 'require' module so it can import .coffee module and added some tests to make sure it works.
This commit is contained in:
@@ -17,6 +17,9 @@ else
|
||||
Lexer: this.Lexer
|
||||
parser: this.parser
|
||||
|
||||
require.registerExtension '.coffee', (content) ->
|
||||
require('coffee-script').compile content
|
||||
|
||||
# The current CoffeeScript version number.
|
||||
exports.VERSION: '0.5.5'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user