Sha256: 375be44e10d2d058cb07b41957bb023534950de47fc9f70d8e33cd70b54a2626

Contents?: true

Size: 966 Bytes

Versions: 62

Compression:

Stored size: 966 Bytes

Contents

/*
	MIT License http://www.opensource.org/licenses/mit-license.php
	Author Tobias Koppers @sokra
*/
var Template = require("./Template");

function HotUpdateChunkTemplate(outputOptions) {
	Template.call(this, outputOptions);
}

module.exports = HotUpdateChunkTemplate;

HotUpdateChunkTemplate.prototype = Object.create(Template.prototype);
HotUpdateChunkTemplate.prototype.render = function(id, modules, hash, moduleTemplate, dependencyTemplates) {
	var modulesSource = this.renderChunkModules({ id: id, modules: modules }, moduleTemplate, dependencyTemplates);
	var core = this.applyPluginsWaterfall("modules", modulesSource, modules, moduleTemplate, dependencyTemplates);
	var source = this.applyPluginsWaterfall("render", core, modules, hash, id, moduleTemplate, dependencyTemplates);
	return source;
};

HotUpdateChunkTemplate.prototype.updateHash = function(hash) {
	hash.update("HotUpdateChunkTemplate");
	hash.update("1");
	this.applyPlugins("hash", hash);
};

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
smock-0.1.246 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.245 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.244 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.243 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.242 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.241 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.240 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.239 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.2 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.1 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.238 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.237 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.236 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.235 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.234 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.233 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.232 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.231 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.230 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.229 node_modules/webpack/lib/HotUpdateChunkTemplate.js