UNPKG

vite-plugin-ra-pages

Version:

Vite plugin to automatically generate routes for React-Admin based on folder structure.

14 lines (11 loc) 326 B
import { PluginOption } from 'vite'; type RAConfig = { root: string; pageDir: string; cacheDir: string; aliasPage: string; lazyLoad: boolean; }; type RAOpts = Partial<RAConfig>; declare const raPages: (raOpts?: RAOpts) => PluginOption; export { type RAConfig, type RAOpts, raPages as default, raPages };