"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.renderBundle = void 0;
const _1 = require(".");
const boot_1 = require("../../boot");
const none_1 = require("../../host/none");
const start_1 = require("../../start");
const AsyncGraph_1 = require("../../types/interface/async/AsyncGraph");
function renderBundle(bundle, opt, api = (0, none_1.noHost)()) {
    // console.log('renderBundle')
    const system = (0, boot_1.boot)(null, (0, none_1.noHost)(), opt);
    const graph = (0, start_1.start)(system, bundle);
    const $graph = (0, AsyncGraph_1.AsyncGraph)(graph);
    (0, _1.render)(system, $graph);
    return system;
}
exports.renderBundle = renderBundle;
//# sourceMappingURL=renderBundle.js.map