stephenhandley/requireindex — pull request #4 by michaelmior (2012-09-05 03:13:16+00:00)
Title: Check files are JS before attempting to require()

I had an issue with swap files attempting to be required. This is a simple change which just checks that what is about to be required is in the list of extensions which can be processed by `require()`.