lepu-test-platform-web/node_modules/webpack/lib/node/NodeMainTemplate.runtime.js

25 lines
751 B
JavaScript
Raw Normal View History

/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
/*global installedChunks $hotChunkFilename$ hotAddUpdateChunk $hotMainFilename$ */
module.exports = function() {
function hotDownloadUpdateChunk(chunkId) { // eslint-disable-line no-unused-vars
var chunk = require("./" + $hotChunkFilename$);
hotAddUpdateChunk(chunk.id, chunk.modules);
}
function hotDownloadManifest() { // eslint-disable-line no-unused-vars
try {
var update = require("./" + $hotMainFilename$);
} catch(e) {
return Promise.resolve();
}
return Promise.resolve(update);
}
function hotDisposeChunk(chunkId) { //eslint-disable-line no-unused-vars
delete installedChunks[chunkId];
}
};