您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

NodeMainTemplate.runtime.js 746B

123456789101112131415161718192021222324252627
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. Author Tobias Koppers @sokra
  4. */
  5. /*global installedChunks $hotChunkFilename$ hotAddUpdateChunk $hotMainFilename$ */
  6. module.exports = function() {
  7. // eslint-disable-next-line no-unused-vars
  8. function hotDownloadUpdateChunk(chunkId) {
  9. var chunk = require("./" + $hotChunkFilename$);
  10. hotAddUpdateChunk(chunk.id, chunk.modules);
  11. }
  12. // eslint-disable-next-line no-unused-vars
  13. function hotDownloadManifest() {
  14. try {
  15. var update = require("./" + $hotMainFilename$);
  16. } catch (e) {
  17. return Promise.resolve();
  18. }
  19. return Promise.resolve(update);
  20. }
  21. //eslint-disable-next-line no-unused-vars
  22. function hotDisposeChunk(chunkId) {
  23. delete installedChunks[chunkId];
  24. }
  25. };