0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/packages/router-plugin
History 2025-02-18 16:44:03 +00:00
..
src refactor(router-plugin): code-splitting to be agnostic to support 'targets' (#3400) 2025-02-12 15:21:06 +13:00
tests refactor(router-plugin): code-splitting to be agnostic to support 'targets' (#3400) 2025-02-12 15:21:06 +13:00
eslint.config.js chore: Migrate to ESLint flat config (#1846) 2024-06-28 11:59:39 +10:00
package.json release: v1.105.5 2025-02-18 16:44:03 +00:00
README.md fix(router-plugin): inline-config should be optional (#1783) 2024-06-19 17:53:55 +12:00
tsconfig.json feat: New Serialization Paradigm (#1824) 2024-06-28 09:45:01 -06:00
vite.config.ts feat(router-plugin): add esbuild plugin (#2578) 2024-10-22 13:21:07 +13:00

TanStack Router Plugin

See https://tanstack.com/router/latest/docs/framework/react/guide/file-based-routing

Installation

npm install -D @tanstack/router-plugin

Usage with vite

// vite.config.js
import { defineConfig } from 'vite'
import { TanStackRouterVite } from '@tanstack/router-plugin/vite'

export default defineConfig({
  plugins: [
    TanStackRouterVite(),
    // ...
  ],
})