---
title: "Fresh 2.0 Graduates to Beta, Adds Vite Support"
description: "Fresh 2.0 enters beta after 63 alphas with a stable architecture, and its final major change is an optional Vite plugin built on Vite's Environment API."
url: "https://swe.quest/articles/fresh-2-0-graduates-to-beta-adds-vite-support-98975c3541d22bf3"
canonical: "https://deno.com/blog/fresh-and-vite"
source: "Deno"
published: "2025-09-02"
difficulty: "easy"
kind: "Release"
reading_minutes: 3
tags: ["frontend","javascript","build-systems","performance"]
---

# Fresh 2.0 Graduates to Beta, Adds Vite Support

A post on [Deno](https://swe.quest/sources/deno.md), published 2025-09-02, 3 min read, Release. Original: [https://deno.com/blog/fresh-and-vite](https://deno.com/blog/fresh-and-vite)

## Summary

Fresh 2.0 enters beta after 63 alphas with a stable architecture, and its final major change is an optional Vite plugin built on Vite's Environment API. The plugin brings hot module reloading for island code and access to the Vite plugin ecosystem for server and client code. It also aliases react to preact/compat automatically. On-demand route loading plus server bundling cut production boot times 9–12×, with the Fresh website dropping from 86ms to 8ms. The \<Head\> component returns with a simpler, more efficient implementation.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [Build systems](https://swe.quest/tags/build-systems.md) (Engineering practices)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- Vite basics
- Preact or React components ([easy posts on React](https://swe.quest/tags/react.md?difficulty=easy))

## Keywords

Fresh, Deno, Vite, Preact, HMR, Vite Environment API

## Related posts

- [Fresh 2.3: Zero JS by default, View Transitions, and Temporal support](https://swe.quest/articles/fresh-2-3-zero-js-by-default-view-transitions-and-temporal-support-78d123ca76300941.md): Deno · 2026-04-24 · Medium · 7 min read · Frontend, JavaScript, Web performance, Browsers
  Fresh 2.3 now skips the client-entry bootstrap script entirely on pages that use no islands or partials, cutting static pages from roughly 5–9 KB gzipped JavaScript to zero with no configuration.
- [Fresh 1.0](https://swe.quest/articles/fresh-1-0-407c9d4b84f51b2c.md): Deno · 2022-06-28 · Medium · 5 min read · Frontend, JavaScript, TypeScript, Web performance, CDN & edge
  Fresh is a full stack web framework for Deno that renders pages just-in-time on the server and ships zero JavaScript to the client by default, using the islands architecture so only explicitly opted-in components are hydrated in the browser.
- [Fresh 1.4 – Faster Page Loads, Layouts and More](https://swe.quest/articles/fresh-1-4-faster-page-loads-layouts-and-more-0ba54de19820b6f5.md): Deno · 2023-08-16 · Medium · 7 min read · Frontend, Web performance, TypeScript
  Fresh 1.4 adds optional ahead-of-time asset compilation via \`deno task build\`, which serves island assets roughly 45-60x faster on serverless cold starts than on-the-fly JIT compilation; a ~30kB search island that took 4.28s now revives near-instantly.
- [Fresh 1.5: Partials, client side navigation and more](https://swe.quest/articles/fresh-1-5-partials-client-side-navigation-and-more-9cde9f664f462089.md): Deno · 2023-10-10 · Medium · 7 min read · Frontend, JavaScript, TypeScript
  Fresh 1.5 introduces Partials, a client-side navigation model where marked regions of a page are swapped with server-rendered HTML without a full reload, preserving island state.
- [Fresh 1.2 – welcoming a full-time maintainer, sharing state between islands, limited npm support, and more](https://swe.quest/articles/fresh-1-2-welcoming-a-full-time-maintainer-sharing-state-between-islands-ccf0a74d8fb68678.md): Deno · 2023-06-15 · Medium · 7 min read · Frontend, JavaScript, TypeScript
  Fresh 1.2 brings on Preact maintainer Marvin Hagemeister as full-time lead after a backlog of 60+ unreviewed PRs, and ships features centred on islands.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
