Skip to content

Fix wrangler plugin not enabled by jsonc config#1564

Merged
webpro merged 1 commit intowebpro-nl:mainfrom
DaniFoldi:fix/wrangler-jsonc-config
Feb 23, 2026
Merged

Fix wrangler plugin not enabled by jsonc config#1564
webpro merged 1 commit intowebpro-nl:mainfrom
DaniFoldi:fix/wrangler-jsonc-config

Conversation

@DaniFoldi
Copy link
Copy Markdown
Contributor

Hi 👋,

Last time when I added the wrangler plugin, json support wasn't stable yet, and only supported .json. Shortly after that, they released official json support, including .jsonc files, which is also the recommended format for new projects. Docs: https://developers.cloudflare.com/workers/wrangler/configuration/

This PR just adds jsonc into the supported file formats, so it's picked up as a config file. I tested it by converting the fixture's wrangler.toml into wrangler.jsonc, and it was picked up and main file was detected fine (biome made some changes in other plugins but I don't want to edit those in this PR)

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Feb 23, 2026

Open in StackBlitz

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

commit: b6dd449

@webpro webpro merged commit 00bb1be into webpro-nl:main Feb 23, 2026
30 checks passed
@webpro
Copy link
Copy Markdown
Member

webpro commented Feb 23, 2026

Thanks Dániel! JSONC should cause no issues. And good to see you again ✨

@webpro
Copy link
Copy Markdown
Member

webpro commented Mar 7, 2026

🚀 This pull request is included in v5.86.0. See Release 5.86.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