@beyond-js/bundles-sdk
Version:
BeyondJS Bundles SDK
35 lines (29 loc) • 839 B
JavaScript
/**
* Processors extensions
*/
module.exports = class extends Map {
get processor() {
return this.
}
get distribution() {
return this.
}
get preprocessor() {
return this.
}
constructor(processor, distribution) {
super();
this.
this.
const {meta} = processor;
const {Preprocessor, extends: _extends} = meta.extender;
this.
_extends.forEach(processorName => {
const extension = new (require('./extension'))(processorName, this.
this.set(processorName, extension);
});
}
}