Max Leiter
0fe011235e
remove webpack, babel, mocha; switch to vite/vitest ( #5064 )
...
```
Webpack vs Vite Build Comparison
┌────────────┬──────────────────────┬────────────────────┬───────────────┐
│ Metric │ Webpack 5 │ Vite 8 (Rolldown) │ Change │
├────────────┼──────────────────────┼────────────────────┼───────────────┤
│ Build time │ 1,961ms (2.96s wall) │ 612ms (0.82s wall) │ 3.2x faster │
├────────────┼──────────────────────┼────────────────────┼───────────────┤
│ CPU time │ 11.0s user │ 1.3s user │ 8.5x less CPU │
└────────────┴──────────────────────┴────────────────────┴───────────────┘
Bundle sizes (gzipped)
┌────────────────┬─────────┬────────┬────────┐
│ Asset │ Webpack │ Vite │ Change │
├────────────────┼─────────┼────────┼────────┤
│ App JS │ 152.6K │ 104.9K │ -31% │
├────────────────┼─────────┼────────┼────────┤
│ Vendor JS │ 251.1K │ 81.6K │ -68% │
├────────────────┼─────────┼────────┼────────┤
│ Runtime JS │ — │ 0.5K │ new │
├────────────────┼─────────┼────────┼────────┤
│ Total JS │ 403.7K │ 187.0K │ -54% │
├────────────────┼─────────┼────────┼────────┤
│ CSS │ 12.5K │ 11.9K │ -5% │
├────────────────┼─────────┼────────┼────────┤
│ Total transfer │ 416.2K │ 198.9K │ -52% │
└────────────────┴─────────┴────────┴────────┘
Raw (uncompressed)
┌───────────────┬─────────┬──────┬────────┐
│ Asset │ Webpack │ Vite │ Change │
├───────────────┼─────────┼──────┼────────┤
│ App JS │ 1.3M │ 304K │ -77% │
├───────────────┼─────────┼──────┼────────┤
│ Vendor JS │ 1.1M │ 236K │ -79% │
├───────────────┼─────────┼──────┼────────┤
│ CSS │ 64K │ 56K │ -13% │
├───────────────┼─────────┼──────┼────────┤
│ Total public/ │ 5.1M │ 3.4M │ -33% │
└───────────────┴─────────┴──────┴────────┘
```
---------
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2026-06-01 09:02:09 -07:00
Max Leiter
eb75c4b77c
chore: refactor Mentions, add isIgnoredUser util ( #5051 )
...
- Mentions were doing a bunch of mutations; not just uses derived state
- no need for a separate `ClientMention`
- added `extractInputHistory` for shared logic
- tests made by claude
2026-04-11 07:59:14 -07:00
Reto Brunner
dd24cb1300
linkify: simplify noscheme detection logic
...
Overriding the built in is poor form, as this prevents adding
a new type handler with its own normalize handler.
We only ever want to override protocol-less URLs to http, so
we just do so explicitly in the "//" schema normalizer.
This also means that we don't need all that type conversion dance,
we simply set the schema to null when we patch it and filter on the
schema directly
2024-01-21 21:18:09 +01:00
SoniEx2
ae6bae69ac
linkify: Add web+ schema support
...
Co-Authored-By: Reto Brunner <reto@slightlybroken.com >
2024-01-21 17:47:32 +01:00
Reto Brunner
b7540b5827
Move condensedTypes to shared/
...
This decouples the rest of the server from the client
2023-01-30 09:14:40 +01:00
Reto Brunner
60bb561e49
Extract tests to shared/
2023-01-30 09:14:40 +01:00