mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-20 06:44:32 +00:00
Bundle all core extensions (#27)
This commit is contained in:
@@ -1503,14 +1503,19 @@ export class ComfyApp {
|
||||
const extensions = await api.getExtensions();
|
||||
this.logging.addEntry("Comfy.App", "debug", { Extensions: extensions });
|
||||
|
||||
const extensionPromises = extensions.map(async ext => {
|
||||
const extensionPromises = extensions
|
||||
.filter(extension => !extension.includes("extensions/core"))
|
||||
.map(async ext => {
|
||||
try {
|
||||
await import(api.apiURL(ext));
|
||||
await import(/* @vite-ignore */api.apiURL(ext));
|
||||
} catch (error) {
|
||||
console.error("Error loading extension", ext, error);
|
||||
}
|
||||
});
|
||||
|
||||
// Need to load core extensions first as some custom extensions
|
||||
// may depend on them.
|
||||
await import("../extensions/core/index.js");
|
||||
await Promise.all(extensionPromises);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user