Skip to content

@ogygia/rewrite · API

@ogygia/rewrite/vite

The rewrite plugin, listed beside ogygia() in vite.config.

On this page

This page is generated from the package’s own .d.ts files on every build, so the signatures, descriptions and examples below always match the source.

Exports rewrite

import { … } from '@ogygia/rewrite/vite';

rewrite

function

The rewrite plugin, listed beside ogygia() in vite.config plugins. No options: it turns on what a rewrite() handle needs (its server realm runs the rewrites, its browser realm puts back what they moved).

function rewrite(): OgygiaPlugin;