lib/graph/make_graph_with_bundles.js
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;
}
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;
}
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 ; }
Create temporary files for virtual modules.
Create temporary files for virtual modules .