API REFERENCE
Define Config
defineConfig()
is a simple utility to define a configuration object with default values and validation.
This function is very useful to well define the configuration of your Rasengan.js application.
javascriptimport { defineConfig } from 'rasengan'; export default defineConfig({ // Configuration options here });
Option | Type | Description | Default |
---|---|---|---|
ssr | boolean | Disable server-side rendering | true |
vite.plugins | Plugin[] | Configure Vite plugins | [] |
vite.resolve.alias | Array<{ find: string; replacement: string; }> | Configure aliases | [] |
javascriptimport { defineConfig } from 'rasengan'; export default defineConfig({ ssr: true, vite: { plugins: [], resolve: { alias: [ { find: '@', replacement: '/src', }, ], }, }, });
See more config options in the rasengan.config.js docs
Details
Router Component
defineRouter