Skip to main content

Choosing between Wrangler & Vite

Wrangler and the Cloudflare Vite plugin both provide local development environments for Workers. Both support backend Workers, local and remote bindings, and multi-Worker applications.

Choose based on the build tools your project uses. You can also use the Vite plugin for development and builds while using Wrangler for deployment and other Workers commands.

Compare Wrangler and Vite

Capability or workflowWranglerCloudflare Vite plugin
Standalone JavaScript or TypeScript WorkersSupportedSupported
Full-stack and backend WorkersSupportedSupported
Local binding simulations via MiniflareSupportedSupported
Remote bindingsSupportedSupported
Multi-Worker developmentSupportedSupported
Frontend and server-side rendering frameworksUse the framework build outputIntegrates with Vite-powered frameworks
Build pipelineUses Wrangler's bundler or a custom buildUses Vite transformations, Hot Module Replacement, and plugins
Deployment and resource managementSupportedUse Wrangler after vite build
Rust WorkersSupportedNot supported
Python WorkersUse pywrangler instead of wranglerNot supported

Use the Cloudflare Vite plugin when your project already uses Vite or would benefit from its build pipeline. Vite is valid for standalone backend Workers, not only frontend applications.

Use wrangler dev when your project does not use Vite or you want a direct command-line workflow. Wrangler also provides deployment and resource management commands.

For local development that requires deployed resources, both tools support remote bindings. Your Worker runs locally while selected bindings connect to deployed Cloudflare resources.

For configuration differences when moving an existing project, refer to Migrating from wrangler dev.