AMDRequireItemDependency.js 764 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. Author Tobias Koppers @sokra
  4. */
  5. "use strict";
  6. const makeSerializable = require("../util/makeSerializable");
  7. const ModuleDependency = require("./ModuleDependency");
  8. const ModuleDependencyTemplateAsRequireId = require("./ModuleDependencyTemplateAsRequireId");
  9. class AMDRequireItemDependency extends ModuleDependency {
  10. constructor(request, range) {
  11. super(request);
  12. this.range = range;
  13. }
  14. get type() {
  15. return "amd require";
  16. }
  17. get category() {
  18. return "amd";
  19. }
  20. }
  21. makeSerializable(
  22. AMDRequireItemDependency,
  23. "webpack/lib/dependencies/AMDRequireItemDependency"
  24. );
  25. AMDRequireItemDependency.Template = ModuleDependencyTemplateAsRequireId;
  26. module.exports = AMDRequireItemDependency;