Created
September 23, 2015 18:46
-
-
Save hpherzog/d8a47b5d6304e6df9ff4 to your computer and use it in GitHub Desktop.
webpack require.ensure shim to use in node.js
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
if(typeof(require.ensure) !== "function") | |
{ | |
require.ensure = function(modules, callback) | |
{ | |
callback(require); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment