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.

DelegatedExportsDependency.js 675B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. Author Tobias Koppers @sokra
  4. */
  5. "use strict";
  6. const DependencyReference = require("./DependencyReference");
  7. const NullDependency = require("./NullDependency");
  8. class DelegatedExportsDependency extends NullDependency {
  9. constructor(originModule, exports) {
  10. super();
  11. this.originModule = originModule;
  12. this.exports = exports;
  13. }
  14. get type() {
  15. return "delegated exports";
  16. }
  17. getReference() {
  18. return new DependencyReference(this.originModule, true, false);
  19. }
  20. getExports() {
  21. return {
  22. exports: this.exports,
  23. dependencies: undefined
  24. };
  25. }
  26. }
  27. module.exports = DelegatedExportsDependency;