Config & plugins

getConfig

Synchronous accessor for cached ManicConfig — call loadConfig first.

getConfig()

Returns the cached merged configuration or DEFAULT_CONFIG when loadConfig() has not run yet.

import { getConfig, loadConfig } from 'manicjs/config';

await loadConfig();
const cfg = getConfig();

manicjs root does not export getConfig — import from manicjs/config only (Package exports).


Signature

function getConfig(): ManicConfig;

Used by

The oxcPlugin Bun adapter calls getConfig() during transforms to respect oxc.target, rewriteImportExtensions, and refresh flags.


See also

On this page