plugin.js 986 B

123456789101112131415161718192021222324252627282930313233
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. var _deepArray = require("./helpers/deep-array.js");
  7. class Plugin {
  8. constructor(plugin, options, key, externalDependencies = (0, _deepArray.finalize)([])) {
  9. this.key = void 0;
  10. this.manipulateOptions = void 0;
  11. this.post = void 0;
  12. this.pre = void 0;
  13. this.visitor = void 0;
  14. this.parserOverride = void 0;
  15. this.generatorOverride = void 0;
  16. this.options = void 0;
  17. this.externalDependencies = void 0;
  18. this.key = plugin.name || key;
  19. this.manipulateOptions = plugin.manipulateOptions;
  20. this.post = plugin.post;
  21. this.pre = plugin.pre;
  22. this.visitor = plugin.visitor || {};
  23. this.parserOverride = plugin.parserOverride;
  24. this.generatorOverride = plugin.generatorOverride;
  25. this.options = options;
  26. this.externalDependencies = externalDependencies;
  27. }
  28. }
  29. exports.default = Plugin;
  30. 0 && 0;
  31. //# sourceMappingURL=plugin.js.map