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' // stub as empty module
| false // disable builtin stub, use original
| { use: string } // redirect to existing stub
| { file: string } // resolve to a local file
| { inline: Record<string, any> } // inline stub object

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
}