Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

Merge branch 'main' into fix/webv2-media-field-inputs

Lincoln Steind4348b40a7a8
diff --cc invokeai/frontend/webv2/vite.config.mts
index 1b3fa669de,994423cff0..e73ddf41ac
--- a/invokeai/frontend/webv2/vite.config.mts
+++ b/invokeai/frontend/webv2/vite.config.mts
@@@ -33,10 -28,30 +34,26 @@@ const ROUTE_SHARED_MODULES =
'/workbench/components/WorkbenchSplashScreen.tsx',
'/workbench/hotkeys/catalog.ts',
'/workbench/launchpad/formatRelativeTime.ts',
- // The Launchpad writes `?intent=` and the editor's session controller reads
- // it. Without this the editor pulls the whole Launchpad chunk for a lookup
- // table — a 66 KB, one-extra-request regression on the editor route.
- '/workbench/launchpad/intents.ts',
'/workbench/palette/settingsEntryDeps.ts',
+ '/workbench/projects/covers.ts',
'/workbench/projects/ids.ts',
+ // The `.invk` surface both routes touch eagerly: the extension for the file
+ // picker, and the error class every import call site catches to translate.
+ // The schema, the ZIP codec and the archive itself stay behind lazy imports.
+ '/workbench/projects/invk/format.ts',
'/workbench/projects/library.ts',
+ // Editor-eager through `syncedPersistence` (cover selection on every save)
+ // and Launchpad-eager through the import workflow. Pulling it out of the
+ // shared chunk to spare the Launchpad ~1.5 KB cost the editor a whole extra
+ // request, because nothing else would then group it — a round trip is the
+ // worse end of that trade.
+ '/workbench/projects/projectAssets.ts',
'/workbench/projects/projectFile.ts',
+ '/workbench/projects/projectFileErrors.ts',
+ // Both routes offer Import and Export, so both need the reporter and the
+ // hooks that drive it.
+ '/workbench/projects/projectFileToasts.ts',
+ '/workbench/projects/useProjectFileActions.ts',
'/workbench/settings/SettingsDialogHost.tsx',
] as const;