CommonJsRequireDependency.js 541 B

12345678910111213141516171819202122
  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 CommonJsRequireDependency extends ModuleDependency {
  9. constructor(request, range) {
  10. super(request);
  11. this.range = range;
  12. }
  13. get type() {
  14. return "cjs require";
  15. }
  16. }
  17. CommonJsRequireDependency.Template = ModuleDependencyTemplateAsId;
  18. module.exports = CommonJsRequireDependency;