beyond
Version:
The Full Stack Universal Typescript Framework
51 lines (42 loc) • 1.3 kB
JavaScript
/**
* A dependency of a sass processor is a files collection of another processor of another bundle
*/
module.exports = class {
get bundle() {
return this.
}
get error() {
return this.
}
get files() {
return this.
}
constructor(application, bundle) {
this.
this.
}
async process() {
const application = this.
const {bundles} = application.modules;
await bundles.ready;
if (!bundles(this.
this.
return;
}
const bundle = bundles.get(this.
await bundle.ready;
const packager = bundle.packagers.get({key: 'internal:sass'});
await packager.processors.ready;
if (!packager.processors.has('sass')) {
this.
return;
}
const processor = packager.processors.get('sass');
await processor.files.ready;
this.
}
}