You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
474 B

4 years ago
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. Author Tobias Koppers @sokra
  4. */
  5. "use strict";
  6. const Dependency = require("../Dependency");
  7. class ModuleDependency extends Dependency {
  8. /**
  9. * @param {string} request request path which needs resolving
  10. */
  11. constructor(request) {
  12. super();
  13. this.request = request;
  14. this.userRequest = request;
  15. }
  16. getResourceIdentifier() {
  17. return `module${this.request}`;
  18. }
  19. }
  20. module.exports = ModuleDependency;