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.

JsonExportsDependency.js 459B

1234567891011121314151617181920212223242526
  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 JsonExportsDependency extends NullDependency {
  8. constructor(exports) {
  9. super();
  10. this.exports = exports;
  11. }
  12. get type() {
  13. return "json exports";
  14. }
  15. getExports() {
  16. return {
  17. exports: this.exports,
  18. dependencies: undefined
  19. };
  20. }
  21. }
  22. module.exports = JsonExportsDependency;