diff --git a/lib/moduleEnv.js b/lib/moduleEnv.js index 239fecd..8ad7891 100644 --- a/lib/moduleEnv.js +++ b/lib/moduleEnv.js @@ -48,6 +48,7 @@ function requireProxy(path) { function registerExtensions() { var originalCoffeeExtension = require.extensions[".coffee"]; + if (originalCoffeeExtension) { originalExtensions.coffee = originalCoffeeExtension; }