• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

clay / claycli / 38530410263
84%
master: 86%

Build:
Build:
LAST BUILD BRANCH: v6.0.0-rc.15
DEFAULT BRANCH: master
Ran 14 Oct 2026 07:45AM UTC
Jobs 1
Files 32
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 Oct 2026 07:45AM UTC coverage: 84.293% (+1.1%) from 83.211%
38530410263

Pull #272

github

jjpaulino
🍕 vite: make the leaked-CommonJS check direction-aware, and skip re-exports

Two review findings on the free-cjs-refs check.

typeof guards: the check treated any `typeof <name>` in a branch test as
proof the name exists. `if (typeof module === 'undefined') module.exports
= 1`, `typeof require !== 'function' && require('x')`, the `else` of a
"defined" check, and `typeof module === 'object' || module.exports` all
run when the name is absent, so a real leak there passed the check and
still crashed in the browser. A reference is now only guarded when the
path it runs on proves the name is defined: typeof comparisons are read
with their operator and literal, `!` flips the outcome, `&&`/`||` need
evidence from one or both sides as appropriate, and `??` proves nothing.
Early exits (`if (typeof module === 'undefined') return;`) are not
understood and are reported, as before.

Re-exports: `export { module } from './x.js'` and
`export * as module from './x.js'` name bindings of the other module, not
local variables, but were reported as references and failed valid builds.
Their subtrees are now skipped.

Checked on a full production build of a large site (301 chunks, both
passes): no false positives, the 7 `typeof module === 'object'` guards in
the kiln bundle still pass, and with Vite's old commonjs put back the
build still fails, naming node_modules/randomfill/browser.js.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Pull Request #272: 🍕 vite: convert CommonJS with @rollup/plugin-commonjs 29, and fail builds on leaked exports/module/require

925 of 1192 branches covered (77.6%)

Branch coverage included in aggregate %.

159 of 163 new or added lines in 2 files covered. (97.55%)

1871 of 2125 relevant lines covered (88.05%)

24.02 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
94.75
lib/cmd/vite/plugins/free-cjs-refs.js
Jobs
ID Job ID Ran Files Coverage
1 38530410263.1 14 Oct 2026 07:45AM UTC 32
84.29
GitHub Action Run
Source Files on build 38530410263
  • Tree
  • List 32
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #38530410263
  • Pull Request #272
  • PR Base - master (#37815947135)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc