code: function createModuleConfig(loader) {
  	var tmp = require("tmp");
  	var config = {};
  	var virtualModules = loader.virtualModules || {};
  	for(var moduleName in virtualModules) {
  		var filename = tmp.fileSync().name;
  		var source = virtualModules[moduleName];
  		fs.writeFileSync(filename, source, "utf8");
  
  		var paths = config.paths = config.paths || {};
  		paths[moduleName] = "file:"+filename;
  	}
  	return config;
  }
docs: Create temporary files for virtual modules.