fix(app): code splitting for web load perf gains

This commit is contained in:
Adam 2026-01-06 08:18:17 -06:00
commit b88bcd49fd
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
9 changed files with 151 additions and 84 deletions

View file

@ -177,8 +177,19 @@ export const { use: useCommand, provider: CommandProvider } = createSimpleContex
const dialog = useDialog()
const options = createMemo(() => {
const all = registrations().flatMap((x) => x())
const seen = new Set<string>()
const all: CommandOption[] = []
for (const reg of registrations()) {
for (const opt of reg()) {
if (seen.has(opt.id)) continue
seen.add(opt.id)
all.push(opt)
}
}
const suggested = all.filter((x) => x.suggested && !x.disabled)
return [
...suggested.map((x) => ({
...x,