PrefetchDependency.js 444 B

123456789101112131415161718192021222324252627
  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. * @param {string} request the request string
  10. */
  11. constructor(request) {
  12. super(request);
  13. }
  14. get type() {
  15. return "prefetch";
  16. }
  17. get category() {
  18. return "esm";
  19. }
  20. }
  21. module.exports = PrefetchDependency;