Commit 5c0f786
committed
fix(chat): drop unsafe toSorted, keep code-split + Map lookup
toSorted (ES2023) is not polyfilled by SWC and crashes iOS15/Safari<16 in
client bundles, so revert use-skill-auto-mention to the non-mutating
[...arr].sort() it had. The code-split of MothershipView and the first-match
Map lookup in prompt-editor are unaffected. Tighten the sim-imports code-split
note to state webpack *can* retain the barrel edge (removing the dead re-export
is the guaranteed fix).1 parent 84051e2 commit 5c0f786
2 files changed
Lines changed: 2 additions & 2 deletions
File tree
- .claude/rules
- apps/sim/app/workspace/[workspaceId]/home/components/user-input/hooks
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| |||
0 commit comments