UNPKG

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