"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.nodeBoot = void 0;
const jsdom_1 = require("jsdom");
const SYSTEM_ROOT_ID_1 = require("../../SYSTEM_ROOT_ID");
const boot_1 = require("../web/boot");
function nodeBoot() {
    const { window } = new jsdom_1.JSDOM(`<div id="${SYSTEM_ROOT_ID_1.SYSTEM_ROOT_ID}"></div>`, {
        url: 'http://localhost/',
    });
    const root = window.document.getElementById(SYSTEM_ROOT_ID_1.SYSTEM_ROOT_ID);
    // @ts-ignore
    return (0, boot_1._webBoot)(window, root);
}
exports.nodeBoot = nodeBoot;
//# sourceMappingURL=boot.js.map