You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 8, 2019. It is now read-only.
Tobias Koppers edited this page Oct 15, 2013
·
18 revisions
// require a modulevardependency=require("./dependency");// each module is only excuted once and the same// exports are returned// require("./dependency") === require("./dependency")// export stuffexports.stuff=42;// exports is a object that is returned by the require// function when require this module.// choose to not use the exports objectmodule.exports=functiondoStuff(){};// the value of module.exports is returned by the require// function when require this module.//// Advanded stuff ////// unload modulevarid=require.resolve("./dependency");deleterequire.cache[id];varnewDependency=require("./dependency");// newDependency !== dependency;if(typeofrequire!=="function"){// This code is removed when bundled and minimized}