@cloudflare/autoconfig
0.13.3 · 20 Nov 2026MIT OR Apache-2.09.9k / weekRepositoryHomepagenpmAtom feed
0.13.3 is the newest release of 0.13.x.
In short
1 breaking5 fixed4 internal
- Breaking
Require Vite 7 or later when autoconfiguring Vite projects for
cf
Release note
Patch Changes
Fix Astro projects set up for cf getting a
wrangler.jsoncinstead of acloudflare.config.tsAutoconfig installed
astro@betato get theastro addthat writescloudflare.config.ts, but package managers such as pnpm kept the project's newer stable Astro, whoseastro addwriteswrangler.jsonc, so the build failed. Autoconfig now runs the beta'sastro addonce without installing it, and keeps the project's Astro version.- Breaking
Require Vite 7 or later when autoconfiguring Vite projects for
cfcfinstalls@cloudflare/vite-pluginv2, which requires Vite 7 or 8, so a Vite 6 project is now rejected before any changes are made instead of failing during dependency installation. Stop adding the SolidStart pre-bundling exclude on
cffor SolidStart 2.2.3 and laterSolidStart 2.2.3 keeps
@solidjs/startout of server pre-bundling itself, so autoconfig now addsenvironments.ssr.optimizeDeps.excludeto the Vite config, or asks you to add it, only for earlier 2.x versions.Suggest a compatible Cloudflare Vite plugin version when the installed one doesn't support cf
When
@cloudflare/vite-pluginwas missing or too old, autoconfig suggested installing@cloudflare/vite-plugin@beta, which resolves to a version that cf rejects. The suggested command now installs@cloudflare/vite-plugin@^2.0.0-rc.0, matching the version autoconfig installs when it configures a project for cf.Correct the dry-run setup message to say "exiting now" instead of "existing now".
The previous wording contained a typo and appeared in Wrangler setup output and other consumers of shared autoconfig.
Fix
Dynamic requireerrors when importing packages from ES modulesImporting these packages in a Node.js ES module could fail with
Dynamic require of "..." is not supportedwhen a dependency loaded a Node.js built-in. These imports now work without requiring a CommonJS wrapper.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.