Skip to content

Generate built-in compilers list from source - #2216

Merged
webpro merged 2 commits into
webpro-nl:mainfrom
abrahamguo:generate-compilers-list
Oct 25, 2026
Merged

webpro merged 2 commits into
webpro-nl:mainfrom
abrahamguo:generate-compilers-list

Conversation

@abrahamguo

Copy link
Copy Markdown
Contributor

The built-in compilers list in the docs is maintained by hand and is missing .marko (#1914) and .md (unplugin-vue-markdown). The docs prebuild script now generates it between marker comments in compilers.md, from builtInCompilers and each plugin's registerCompilers, and notes what enables each one. .ts is left out, since the Nuxt and unplugin-auto-import compilers only add auto-imports to it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pkg-pr-new

pkg-pr-new Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/knip@2216
npm i https://pkg.pr.new/@knip/language-server@2216
npm i https://pkg.pr.new/@knip/mcp@2216

commit: 1f80152

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@webpro webpro left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @abrahamguo, this is a good one to take off the manual-maintenance pile. I regenerated on your branch and the committed list matches, checked the twelve lines against the compiler dependency arrays and the plugin hooks, and both self-scans are clean with the @internal tag (without it the export shows up in the production scan, so the tag is right). Grouping extensions by enabler and collapsing scopes reads well.

@webpro
webpro merged commit d6f594c into webpro-nl:main Oct 25, 2026
32 checks passed
@webpro

webpro commented Oct 29, 2026

Copy link
Copy Markdown
Member

πŸš€ This pull request is included in v6.44.0. See Release 6.44.0 for release notes.

Using Knip in a commercial project? Please consider becoming a sponsor.

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.

2 participants