ProvideForSharedDependency.js 654 B

12345678910111213141516171819202122232425262728293031323334
  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("../dependencies/ModuleDependency");
  7. const makeSerializable = require("../util/makeSerializable");
  8. class ProvideForSharedDependency extends ModuleDependency {
  9. /**
  10. *
  11. * @param {string} request request string
  12. */
  13. constructor(request) {
  14. super(request);
  15. }
  16. get type() {
  17. return "provide module for shared";
  18. }
  19. get category() {
  20. return "esm";
  21. }
  22. }
  23. makeSerializable(
  24. ProvideForSharedDependency,
  25. "webpack/lib/sharing/ProvideForSharedDependency"
  26. );
  27. module.exports = ProvideForSharedDependency;