getViteFeatureConfig
Builds the part of the vite config the build features contribute, each only where the consumer’s config left it unset: the framework’s compile-time constants (define), the automatic JSX runtime for React and Preact (oxc.jsx), and the PostCSS plugins of the styles option (css.postcss).
Import:
import { getViteFeatureConfig } from '@mnaoumov/obsidian-dev-toolkit/bundlers/vite';Signature:
function getViteFeatureConfig(params: GetViteFeatureConfigParams): UserConfigParameters:
| Parameter | Type | Description |
|---|---|---|
params |
GetViteFeatureConfigParams | The GetViteFeatureConfigParams. |
Returns: UserConfig — The config vite merges into the consumer’s.
Links to this page: