Rebase Vite/Vitest tooling onto direct-io stack#137
Open
OBrezhniev wants to merge 3 commits into
Open
Conversation
Rollup -> Vite (build/node/main.cjs + browser esm/iife), Mocha/Chai -> Vitest with node-esm / node-cjs / browser (Playwright) projects, flat eslint.config.js, CI workflow. Adopts the colleague's explicit browser/node split (src/fastfile.browser.js + exports.browser condition), which supersedes our runtime-detection compat approach (constants.browser.js + process-free Node detection removed). Our direct-io fast paths in osfile.js are untouched and still used by the node fastfile.js (routes type:file -> osfile open()). Ported our BigBuffer direct-io regression tests into the Vitest osfile suite. Keeps audit overrides. 20 node tests + 8 browser tests pass; CJS require + browser ESM/IIFE verified.
Member
Author
|
ESM-rebase set — the tooling migration re-applied on top of our optimization stack (rather than replaying the branches), so the MSM/CIOS/memory work is preserved. Review together:
Deviations from feat/esm-migration are called out in each PR body (e.g. binfileutils MAX_BUFFER_SIZE, snarkjs IIFE/bfj, mnt6753 excluded, smart_contracts test deferred). All branches keep git+https commit-ref pins; re-pin if a branch moves. |
This was referenced Jul 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rebase tooling migration onto our direct-io stack (Vite + Vitest)
Applies
feat/esm-migrationtooling on top of ourfeature/direct_rw_optimizationwork. Target:feat/esm-migration.build/node/main.cjs+ browser esm/iife), Mocha/Chai → Vitest(node-esm / node-cjs / browser projects), flat
eslint.config.js, CI.src/fastfile.browser.js+exports.browser), which supersedes our runtime-detection +constants.browser.jscompat approach. Our direct-io fast paths in
osfile.jsare untouched andstill used by the node
fastfile.js(type:file→osfile.open()); ourBigBuffer direct-io regression tests are ported into the Vitest osfile suite.
Validation: 20 node + 8 browser tests pass; CJS require + browser ESM/IIFE verified.