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

ModuleHotAcceptDependency.js 567B

1234567891011121314151617181920212223
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. Author Tobias Koppers @sokra
  4. */
  5. "use strict";
  6. const ModuleDependency = require("./ModuleDependency");
  7. const ModuleDependencyTemplateAsId = require("./ModuleDependencyTemplateAsId");
  8. class ModuleHotAcceptDependency extends ModuleDependency {
  9. constructor(request, range) {
  10. super(request);
  11. this.range = range;
  12. this.weak = true;
  13. }
  14. get type() {
  15. return "module.hot.accept";
  16. }
  17. }
  18. ModuleHotAcceptDependency.Template = ModuleDependencyTemplateAsId;
  19. module.exports = ModuleHotAcceptDependency;