Skip to content

fix(docs): pin vite override to ^6.4.2 (was unbounded, pulled vite 8)#135

Merged
runonthespot merged 1 commit into
mainfrom
fix/docs-vite-version
May 24, 2026
Merged

fix(docs): pin vite override to ^6.4.2 (was unbounded, pulled vite 8)#135
runonthespot merged 1 commit into
mainfrom
fix/docs-vite-version

Conversation

@runonthespot
Copy link
Copy Markdown
Contributor

Root cause

In #133 I added a pnpm override to fix the GHSA-4w7w-66w2-5vf9 vite path-traversal alert:

```json
"vite": ">=6.4.2"
```

That's unbounded. pnpm happily resolved it to vite 8.0.14. Vite 8 made esbuild an optional/separate install. Vitepress 1.6.4 still calls `transformWithEsbuild` from its rendering pipeline, so the docs deploy died with:

```
Failed to load 'transformWithEsbuild'. It is deprecated and it now requires esbuild to be installed separately.
ELIFECYCLE Command failed with exit code 1.
```

The Deploy Documentation to GitHub Pages workflow has been failing on every push since.

Fix

Constrain to `^6.4.2` so we stay in vite 6.x — keeps the security patch but doesn't jump majors that vitepress wasn't tested against. Same treatment for esbuild (`^0.25.0`).

Verified locally

  • `pnpm install --frozen-lockfile && pnpm build` — succeeds, ~5s
  • `pnpm audit` — 0 vulnerabilities (security alert still resolved)
  • Compared bundle output dir: same as on main

🤖 Generated with Claude Code

My security-fix override in #133 used \`vite: \">=6.4.2\"\` which is
unbounded. pnpm resolved that to vite 8.0.14 — vite 8 made esbuild
an optional/separate install, but vitepress 1.6.4 still calls
\`transformWithEsbuild\`, so the deploy-docs workflow has failed on
every push since:

  Failed to load \`transformWithEsbuild\`. It is deprecated and it
  now requires esbuild to be installed separately.
  ELIFECYCLE Command failed with exit code 1.

Constrain to \`^6.4.2\` — keeps the security patch (path traversal
in dev-server map handling, GHSA-4w7w-66w2-5vf9) but stays within
the major version vitepress was tested against. Also constrain
\`esbuild: \"^0.25.0\"\` for the same reason.

Verified locally: \`pnpm install --frozen-lockfile && pnpm build\`
completes in ~5s, \`pnpm audit\` finds 0 vulnerabilities.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@runonthespot runonthespot merged commit 53e07e5 into main May 24, 2026
14 checks passed
@runonthespot runonthespot deleted the fix/docs-vite-version branch May 24, 2026 17:30
runonthespot added a commit that referenced this pull request May 24, 2026
Headline: C, C++, and Markdown language support land via #102 and #104
(both by @szavadsky). Plus the docs-deploy fix (#135) that resolves
the vitepress build break caused by my unbounded vite override in 0.7.10.

Also the live test of npm trusted publishing now that the repo's
trusted-publisher config is verified saved on the npm side.

See CHANGELOG.md.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant