---
url: /reference/api/Function.mergeConfig.md
---
# Function: mergeConfig()

## Call Signature

```ts
function mergeConfig(defaults, ...overrides): UserConfig
```

Defined in: [src/config/options.ts:367](https://github.com/rolldown/tsdown/blob/9f98be3c9c6627ed1c4e5bdec3d8a18e5463c4c8/src/config/options.ts#L367)

### Parameters

#### defaults

[`UserConfig`](Interface.UserConfig.md)

#### overrides

...[`UserConfig`](Interface.UserConfig.md)\[]

### Returns

[`UserConfig`](Interface.UserConfig.md)

## Call Signature

```ts
function mergeConfig(defaults, ...overrides): InlineConfig
```

Defined in: [src/config/options.ts:371](https://github.com/rolldown/tsdown/blob/9f98be3c9c6627ed1c4e5bdec3d8a18e5463c4c8/src/config/options.ts#L371)

### Parameters

#### defaults

[`InlineConfig`](Interface.InlineConfig.md)

#### overrides

...[`InlineConfig`](Interface.InlineConfig.md)\[]

### Returns

[`InlineConfig`](Interface.InlineConfig.md)
