Skip to content

Interface: XmBrowserConfigOptions

API / @xmachines/shared / vitest / XmBrowserConfigOptions

Defined in: vitest.ts:117

Options for defineXmBrowserConfig that live outside the plain Vitest config overrides.

Properties

PropertyTypeDescriptionDefined in
base?UserConfigBase Vite config to layer the browser test config on top of (typically a demo’s vite.config.ts). When set, the base is expected to provide its own resolve/plugins, so the cacheDir and resolve defaults are not applied — mirroring the previous mergeConfig(viteConfig, ...) pattern in demo browser configs.vitest.ts:125
optimizeDeps?string[]Extra package specifiers to pre-bundle via xmOptimizeDeps (e.g. ["@xmachines/json-render-vue", "@xmachines/json-render-vue/schema"]). Ignored when overrides.optimizeDeps is set, which then replaces the default xmOptimizeDeps() wholesale.vitest.ts:132
resolve?Partial<ResolveOptions & object>Extra resolve options forwarded to xmResolve (e.g. conditions or additional alias entries). Not applied when base is set — the base config owns resolve in that layout.vitest.ts:138