bit-bin
Version:
<a href="https://opensource.org/licenses/Apache-2.0"><img alt="apache" src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"></a> <a href="https://github.com/teambit/bit/blob/master/CONTRIBUTING.md"><img alt="prs" src="https://img.shields.io/b
35 lines (27 loc) • 661 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.CompilerTask = void 0;
function _bluebird() {
const data = require("bluebird");
_bluebird = function () {
return data;
};
return data;
}
/**
* compiler build task. Allows to compile components during component build.
*/
class CompilerTask {
constructor(extensionId) {
this.extensionId = extensionId;
}
execute(context) {
return (0, _bluebird().coroutine)(function* () {
const compilerInstance = context.env.getCompiler();
return compilerInstance.compileOnCapsules(context);
})();
}
}
exports.CompilerTask = CompilerTask;
;