SootSimConfig
The main configuration object for SootSim projects.
Usage
import { defineConfig } from 'sootsim/config'
export default defineConfig({
modules: { ... },
env: { ... },
settings: { ... },
initialState: { ... },
})
Properties
modules
Record<string, ModuleResolution>
Override how native packages are resolved.
type ModuleResolution =
| 'noop'
| false
| { use: string }
| { file: string }
| { inline: Record<string, any> }
env
Record<string, string>
Environment variables injected as process.env.*.
settings
Partial<SettingsValues>
Simulator settings overrides. See settings schema.
initialState
Initial app state passed to the simulator.
{
authenticated?: boolean
locale?: string
colorScheme?: 'light' | 'dark' | 'auto'
featureFlags?: Record<string, boolean | string | number>
[key: string]: any
}