Skip to content

Instantly share code, notes, and snippets.

@hpherzog
Created September 23, 2015 18:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hpherzog/d8a47b5d6304e6df9ff4 to your computer and use it in GitHub Desktop.
Save hpherzog/d8a47b5d6304e6df9ff4 to your computer and use it in GitHub Desktop.
webpack require.ensure shim to use in node.js
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