Files
med-notes/.pnpm-store/v10/files/23/39b2c31cf5ef1d65706e8b2a36939a68959d72b9aa3494e37133ef7fe3330f08ccd28eb78425ac3564678a2e0855120fa02f0704f175d0882428bb0daa6dc8
2025-05-09 05:30:08 +02:00

51 lines
1.1 KiB
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
class PluginPass {
constructor(file, key, options, isAsync) {
this._map = new Map();
this.key = void 0;
this.file = void 0;
this.opts = void 0;
this.cwd = void 0;
this.filename = void 0;
this.isAsync = void 0;
this.key = key;
this.file = file;
this.opts = options || {};
this.cwd = file.opts.cwd;
this.filename = file.opts.filename;
this.isAsync = isAsync;
}
set(key, val) {
this._map.set(key, val);
}
get(key) {
return this._map.get(key);
}
availableHelper(name, versionRange) {
return this.file.availableHelper(name, versionRange);
}
addHelper(name) {
return this.file.addHelper(name);
}
buildCodeFrameError(node, msg, _Error) {
return this.file.buildCodeFrameError(node, msg, _Error);
}
}
exports.default = PluginPass;
{
PluginPass.prototype.getModuleName = function getModuleName() {
return this.file.getModuleName();
};
PluginPass.prototype.addImport = function addImport() {
this.file.addImport();
};
}
0 && 0;
//# sourceMappingURL=plugin-pass.js.map