UNPKG

1.08 kBJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = void 0;
7class PluginPass {
8 constructor(file, key, options) {
9 this._map = new Map();
10 this.key = void 0;
11 this.file = void 0;
12 this.opts = void 0;
13 this.cwd = void 0;
14 this.filename = void 0;
15 this.key = key;
16 this.file = file;
17 this.opts = options || {};
18 this.cwd = file.opts.cwd;
19 this.filename = file.opts.filename;
20 }
21 set(key, val) {
22 this._map.set(key, val);
23 }
24 get(key) {
25 return this._map.get(key);
26 }
27 availableHelper(name, versionRange) {
28 return this.file.availableHelper(name, versionRange);
29 }
30 addHelper(name) {
31 return this.file.addHelper(name);
32 }
33 addImport() {
34 return this.file.addImport();
35 }
36 buildCodeFrameError(node, msg, _Error) {
37 return this.file.buildCodeFrameError(node, msg, _Error);
38 }
39}
40exports.default = PluginPass;
41{
42 PluginPass.prototype.getModuleName = function getModuleName() {
43 return this.file.getModuleName();
44 };
45}
460 && 0;
47
48//# sourceMappingURL=plugin-pass.js.map