(p)
| 2 | // CommonJS require() |
| 3 | |
| 4 | function require(p) { |
| 5 | var path = require.resolve(p), |
| 6 | mod = require.modules[path]; |
| 7 | if (!mod) throw new Error('failed to require "' + p + '"'); |
| 8 | if (!mod.exports) { |
| 9 | mod.exports = {}; |
| 10 | mod.call(mod.exports, mod, mod.exports, require.relative(path)); |
| 11 | } |
| 12 | return mod.exports; |
| 13 | } |
| 14 | |
| 15 | require.modules = {}; |
| 16 |