Commit 66530bc
committed
perf(vanilla): use terser for the main build to fit the size-limit budget
packages/vanilla's bundled dist (solid-js + the whole
@vates/data-table-solid adapter, as internal implementation details)
had drifted over its own checked-in 27 KB gzip budget — 28.69 KB
before this session's other work, 27.96 KB after (today's core
extraction work already shrank it, just not enough). Switching this
package's own build from Vite's default esbuild minifier to terser
(property mangling deliberately left off) gets it to 25.25 KB, with
some headroom, at no cost to any other package — core/react/vue/solid
stay on esbuild, since their own consumers install
solid-js/react/vue themselves rather than this package's dist/
carrying that weight.
Verified beyond the existing test suite (which exercises source via
vitest aliasing, not the built dist): a manual smoke test loading the
actual terser-minified dist/data-table-vanilla.js against a real DOM
(createDataTable, initial render, setData, destroy) behaves
identically to before.1 parent 4fa9392 commit 66530bc
3 files changed
Lines changed: 76 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
13 | 22 | | |
14 | 23 | | |
15 | 24 | | |
| |||
0 commit comments