wallet-core/node_modules/webpack/lib/node/NodeMainTemplate.runtime.js
2017-05-03 15:35:00 +02:00

25 lines
751 B
JavaScript

/*
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];
}
};