Revert "[fix] Remove dynamic import timing issue causing Playwright test flakiness" (#4102)

This commit is contained in:
filtered
2025-06-07 23:57:29 -07:00
committed by GitHub
parent e8236e1a85
commit e2024c1e79

View File

@@ -52,7 +52,6 @@ import type { ComfyExtension, MissingNodeType } from '@/types/comfy'
import { ExtensionManager } from '@/types/extensionTypes'
import { ColorAdjustOptions, adjustColor } from '@/utils/colorUtil'
import { graphToPrompt } from '@/utils/executionUtil'
import { getFileHandler } from '@/utils/fileHandlers'
import {
executeWidgetsCallback,
fixLinkInputSlots,
@@ -1266,6 +1265,7 @@ export class ComfyApp {
* @param {File} file
*/
async handleFile(file: File) {
const { getFileHandler } = await import('@/utils/fileHandlers')
const removeExt = (f: string) => {
if (!f) return f
const p = f.lastIndexOf('.')