Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/rewire.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rewire.js')
-rw-r--r--lib/rewire.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/rewire.js b/lib/rewire.js
index 536929d..cbd24c2 100644
--- a/lib/rewire.js
+++ b/lib/rewire.js
@@ -55,13 +55,7 @@ function internalRewire(parentModulePath, targetPath) {
}
moduleEnv.inject(prelude, appendix);
-
- if (targetPath.match(/\.coffee$/)) {
- moduleEnv.load(targetModule);
- } else {
- moduleEnv.compile(targetModule, src, targetPath);
- }
-
+ moduleEnv.load(targetModule);
return targetModule.exports;
}