---
title: "@pitlane/vite-plugin-remix"
description: "The `remix()` Vite plugin — Remix 3 build orchestration, the `clientEntry()` island identity transform, dev serving through the app's fetch handler, hot module replacement for components and server-rendered data, prerendering, and a preview server, for any Vite or Vite+ project."
url: "https://pitlane.tools/package/vite-plugin-remix/"
---

# @pitlane/vite-plugin-remix

The `remix()` Vite plugin — Remix 3 build orchestration, the `clientEntry()` island identity transform, dev serving through the app's fetch handler, hot module replacement for components and server-rendered data, prerendering, and a preview server, for any Vite or Vite+ project.

## See

- [Vite plugin guide](https://pitlane.tools/guides/vite-plugin.md)
- [Hot module replacement guide](https://pitlane.tools/guides/hmr.md)
- [Single-page apps guide](https://pitlane.tools/guides/spa.md)
- [Prerendering guide](https://pitlane.tools/guides/prerendering.md)

## Interfaces

- [PrerenderConfig](https://pitlane.tools/package/vite-plugin-remix/interface/PrerenderConfig.md). The object form of the `prerender` option: which paths to render, plus how many to render at once and whether to follow the links they contain.
- [PrerenderContext](https://pitlane.tools/package/vite-plugin-remix/interface/PrerenderContext.md). What a `prerender` function receives.
- [RemixPluginOptions](https://pitlane.tools/package/vite-plugin-remix/interface/RemixPluginOptions.md). The options [remix](https://pitlane.tools/package/vite-plugin-remix/function/remix.md) accepts. Every one has a default, and most projects pass none.

## Type Aliases

- [PrerenderOption](https://pitlane.tools/package/vite-plugin-remix/type/PrerenderOption.md). Everything `remix({ prerender })` accepts: `true` for every static path in the route map, `false` for none, an explicit path list, a function that computes one, or a [PrerenderConfig](https://pitlane.tools/package/vite-plugin-remix/interface/PrerenderConfig.md) that adds `concurrency` and `spider`.
- [PrerenderPaths](https://pitlane.tools/package/vite-plugin-remix/type/PrerenderPaths.md). A function that decides which paths to prerender, for path sets that need async work — a CMS query, a filesystem scan, a database read.
- [PrerenderPathsOption](https://pitlane.tools/package/vite-plugin-remix/type/PrerenderPathsOption.md). The paths to prerender: `true` for every static path in the route map, an explicit list, or a function that computes one.

## Functions

- [remix](https://pitlane.tools/package/vite-plugin-remix/function/remix.md). Wires Remix 3 into a Vite or Vite+ project: multi-environment builds (`dist/ssr` + `dist/client`) with an asset manifest for `createAssetResolver()`, portable `clientEntry(import.meta.url, …)` island identities that `render({ assets })` resolves, dev serving through the app's fetch handler, prerendering, and a preview server for the production build.
