Created
October 12, 2012 18:10
-
-
Save devongovett/3880609 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AV.loadModule = function() { | |
| var Module = require('module'); | |
| var contextLoad = Module._contextLoad; | |
| Module._contextLoad = true; | |
| var AV = global.AV; | |
| global.AV = require('av'); | |
| var ret = require.apply(null, arguments); | |
| Module._contextLoad = contextLoad; | |
| global.AV = AV; | |
| return ret; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment