getViteConfigDefaults
Builds the part of the vite config the plugin contributes: only the options the consumer left unset.
Import:
import { getViteConfigDefaults } from '@mnaoumov/obsidian-dev-toolkit/bundlers/vite';Signature:
function getViteConfigDefaults(userConfig: UserConfig, buildContext: ObsidianPluginBuildContext): UserConfigParameters:
| Parameter | Type | Description |
|---|---|---|
userConfig |
UserConfig | The consumer’s vite config. |
buildContext |
ObsidianPluginBuildContext | The build context. |
Returns: UserConfig — The config vite merges into the consumer’s.