PrefetchDependency.js 491 B

12345678910111213141516171819202122232425262728
  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. class PrefetchDependency extends ModuleDependency {
  8. /**
  9. * Creates an instance of PrefetchDependency.
  10. * @param {string} request the request string
  11. */
  12. constructor(request) {
  13. super(request);
  14. }
  15. get type() {
  16. return "prefetch";
  17. }
  18. get category() {
  19. return "esm";
  20. }
  21. }
  22. module.exports = PrefetchDependency;