UI for Zipcoin Blue

DelegatedExportsDependency.js 587B

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