Force import DraggableList (#24)

* Force import

* Fix circular import
This commit is contained in:
Chenlei Hu
2024-06-17 17:24:59 -04:00
committed by GitHub
parent d133d664b5
commit cc7ee23b91
3 changed files with 5 additions and 4 deletions

View File

@@ -6,6 +6,7 @@ import { defaultGraph } from "./defaultGraph";
import { getPngMetadata, getWebpMetadata, importA1111, getLatentMetadata } from "./pnginfo";
import { addDomClippingSetting } from "./domWidget";
import { createImageHost, calculateImageGrid } from "./ui/imagePreview"
import { DraggableList } from "./ui/draggableList";
import { applyTextReplacements, addStylesheet } from "./utils";
import type { ComfyExtension } from "/types/comfy";
import type { LGraph, LGraphCanvas, LGraphNode } from "/types/litegraph";
@@ -53,9 +54,11 @@ export class ComfyApp {
static clipspace_return_node = null;
// Force vite to import utils.ts as part of index.
// Force import of DraggableList.
static utils = {
applyTextReplacements,
addStylesheet,
DraggableList,
};
ui: ComfyUI;