[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
12

Configure Feed

Select the types of activity you want to include in your feed.

docs: clarify server.deps.fallbackCJS heuristic (#9479)

authored by

이동길 and committed by
GitHub
(Jan 19, 2026, 11:09 AM +0100) 9027af33 d589c829

+2 -2
+2 -2
docs/config/server.md
··· 68 68 - **Type:** `boolean` 69 69 - **Default:** `false` 70 70 71 - When a dependency is a valid ESM package, try to guess the cjs version based on the path. This might be helpful, if a dependency has the wrong ESM file. 71 + When enabled, Vitest will try to guess a CommonJS build for an ESM entry by checking a few common CJS/UMD file name and folder patterns (like `.mjs`, `.umd.js`, `.cjs.js`, `umd/`, `cjs/`, `lib/`). 72 72 73 - This might potentially cause some misalignment if a package has different logic in ESM and CJS mode. 73 + This is a best-effort heuristic to work around confusing or incorrect ESM/CJS packaging and may not work for all dependencies.