sv-router/vite-plugin
Functions
router(options?)
A Vite plugin that automatically generates route definitions from your file system structure.
Parameters:
options- (Optional) Configuration object for the router plugin
Returns: A Vite plugin
Types
RouterOptions
Configuration options for the router Vite plugin.
Properties:
allLazy- (Optional) If true, make all routes lazy loaded by default. Default:falseignore- (Optional) An array of regular expressions for files to ignore when generating routes. Default:[]js- (Optional) If true, generates the routes in a .js file instead of a .ts file. Default:falsepath- (Optional) The path to the routes folder. Default:'src/routes'