Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
define(function () {
var hotReloadSimple = function (item, callback) {
require.undef(item); //delete cache representing module; this means the next require call to the same module will then have to pull the module from filesystem
require([item], function (module) { //load the file asynchronously, because the cache has been deleted
callback(null, module);
return {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.