Commit 0406155
committed
Migrate build/test tooling to Vite + Vitest (build/test only)
Rollup -> Vite, Mocha/Chai -> Vitest, flat eslint.config.js, CI workflow.
Deliberately does NOT adopt the feat/esm-migration workerpool/threadman
rewrite: our WorkerSlot threadman + batch-affine MSM module wiring in
threadman.js/threadman_thread.js and the web-worker dependency are kept
as-is. The Vite browser build reproduces the old rollup config exactly:
bakes the worker thread function in as a string literal, strips the
node-only web-worker import, and keeps wasmbuilder/wasmcurves external
(lazy). Tests converted in place (chai->vitest imports, before/after->
beforeAll/afterAll, mocha timeout API dropped for the global testTimeout),
preserving our GLV/GLS/batching/chunked-reader coverage and the SES
lockdown harness (run as a child process). Node build.cjs + browser ESM
verified; 67 tests pass incl. SES.
Browser Vitest project is intentionally omitted: it needs the threadman
platform split from feat/esm-migration, which is out of scope here.1 parent ef6460f commit 0406155
20 files changed
Lines changed: 11068 additions & 14169 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 2 | + | |
7 | 3 | | |
8 | 4 | | |
9 | 5 | | |
10 | 6 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 7 | + | |
| 8 | + | |
18 | 9 | | |
19 | 10 | | |
20 | 11 | | |
21 | | - | |
| 12 | + | |
22 | 13 | | |
23 | 14 | | |
24 | | - | |
| 15 | + | |
25 | 16 | | |
26 | | - | |
27 | | - | |
28 | | - | |
| 17 | + | |
| 18 | + | |
29 | 19 | | |
30 | 20 | | |
31 | 21 | | |
32 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
33 | 26 | | |
34 | 27 | | |
0 commit comments