Skip to content

Instantly share code, notes, and snippets.

@StanAngeloff
Created August 16, 2010 14:11
Show Gist options
  • Save StanAngeloff/527000 to your computer and use it in GitHub Desktop.
Save StanAngeloff/527000 to your computer and use it in GitHub Desktop.
diff --git a/src/command.coffee b/src/command.coffee
index 3056894..beeb09c 100644
--- a/src/command.coffee
+++ b/src/command.coffee
@@ -96,7 +96,7 @@ compileScript = (source, code, base) ->
o = options
codeOpts = compileOptions source
if o.require
- require fs.realpathSync file for file in o.require
+ require(if helpers.starts(file, '.') then fs.realpathSync(file) else file) for file in o.require
try
CoffeeScript.emit 'compile', task = {source, code, base, options, codeOpts}
{source, code, base, options, codeOpts} = task if CoffeeScript.listeners 'compile'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment