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.268 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.267 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.266 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.265 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.264 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.263 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.262 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.261 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.260 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.259 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.258 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.256 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.255 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.254 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.253 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.252 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.251 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.250 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.249 node_modules/webpack/lib/HotUpdateChunkTemplate.js
smock-0.1.247 node_modules/webpack/lib/HotUpdateChunkTemplate.js