@cloudflare/vite-plugin
1.70.1 · 19 Nov 2026MIT12.3M / weekRepositoryHomepagenpmAtom feed
1.70.1 is the newest release of 1.x.
In short
1 fixed2 internal
Release note
Patch Changes
Fix
.dev.varswritten forvite previewto round-trip values containing quotesWhen the plugin emits
dist/<env>/.dev.varsforvite preview, it previously wrote each value as a double-quoted dotenv string with"escaped to\".dotenv(the parser wrangler uses) does not unescape\"inside double-quoted values, so values containing"arrived at the worker with literal backslashes still in them.The plugin now quotes strings using the first quote character that does not appear in the value (with the priority order: single → backtick → double), all of which dotenv strips correctly. If a value contains every supported quote character it throws instead of silently corrupting the value.
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.