()
| 43 | throw new Error("Cannot find module '" + x + "' within '"+cwd+"'"); |
| 44 | |
| 45 | function firstMatch() { |
| 46 | for(var i= 0,a; (a = arguments[i]); ++i) { |
| 47 | if (require.modules[a]) { return a; } |
| 48 | } |
| 49 | } |
| 50 | }; |
| 51 | |
| 52 | require.alias = function (from, to) { |