@taserjs/router-plugin
Complete API reference and configuration options for @taserjs/router-plugin across Vite, Next.js App Router, and Nitro server environments.
The @taserjs/router-plugin package provides framework adapters, virtual module compilation, and ambient TypeScript generation for Vite, Next.js, and Nitro.
Exports Overview
| Subpath Export | Description | Target Framework |
|---|---|---|
@taserjs/router-plugin/vite | Vite compiler plugin with virtual routing and HMR | Vite, TanStack Start |
@taserjs/router-plugin/next | Next.js curried configuration wrapper | Next.js App Router |
@taserjs/router-plugin/nitro | Nitro server engine module | Standalone Nitro, Nuxt |
@taserjs/router-plugin/webpack | Webpack plugin | Webpack |
@taserjs/router-plugin/rspack | Rspack plugin | Rspack |
@taserjs/router-plugin/rollup | Rollup plugin | Rollup |
@taserjs/router-plugin/rolldown | Rolldown plugin | Rolldown |
@taserjs/router-plugin/esbuild | Esbuild plugin | Esbuild |
The package root (@taserjs/router-plugin) is not part of the public API.
@taserjs/router-plugin/runtime is reserved for generated app code.
Vite Plugin (@taserjs/router-plugin/vite)
import { taser } from "@taserjs/router-plugin/vite";
export default defineConfig({
plugins: [taser(options?)],
});TaserPluginOptions
Prop
Type
Next.js Plugin (@taserjs/router-plugin/next)
import createTaser from "@taserjs/router-plugin/next";
const withTaser = createTaser(options?);
export default withTaser(nextConfig);TaserNextOptions
Prop
Type
Nitro Module (@taserjs/router-plugin/nitro)
import { taser } from "@taserjs/router-plugin/nitro";
export default defineConfig({
modules: [taser(options?)],
});TaserNitroOptions
Prop
Type
@taserjs/router
Complete API reference for @taserjs/router: createTaserApp, createContext, fluent RouteBuilder chaining, reply helpers, and core types.
@taserjs/router-client
Complete API reference for @taserjs/router-client: createClient options, fetch interop, formBody utilities, and end-to-end TypeScript types.