Loading
API REFERENCE
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', }, ], }, }, });