MCPcopy Create free account
hub / github.com/TanStack/devtools / mergeConfig

Function mergeConfig

packages/devtools-a11y/src/core/utils/config.utils.ts:60–68  ·  view source on GitHub ↗
(
  options: A11yPluginOptions = {},
)

Source from the content-addressed store, hash-verified

58 * Merge user options with defaults
59 */
60export function mergeConfig(
61 options: A11yPluginOptions = {},
62): Required<A11yPluginOptions> {
63 if (options.persistSettings !== false) {
64 const saved = loadConfig()
65 return { ...saved, ...options }
66 }
67 return { ...DEFAULT_CONFIG, ...options }
68}

Callers 15

vite.config.tsFile · 0.90
createAllyValueFunction · 0.90
config.test.tsFile · 0.90
vite.config.tsFile · 0.90
vite.config.vue.tsFile · 0.90
vite.config.tsFile · 0.90
vite.config.tsFile · 0.90

Calls 1

loadConfigFunction · 0.85

Tested by

no test coverage detected