import { ContextRoot } from "@lit/context";

//#region src/attachContextRoot.ts
let contextRoot = null;
const attachContextRoot = () => {
	if (typeof window === "undefined") return;
	if (contextRoot !== null) return;
	contextRoot = new ContextRoot();
	contextRoot.attach(document.body);
};

//#endregion
export { attachContextRoot };
//# sourceMappingURL=attachContextRoot.js.map