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

## Call Signature

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

Defined in: [src/config/options.ts:376](https://github.com/rolldown/tsdown/blob/9ab935d65885ae715c1fd66933f7565b5024bfd1/src/config/options.ts#L376)

### 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:380](https://github.com/rolldown/tsdown/blob/9ab935d65885ae715c1fd66933f7565b5024bfd1/src/config/options.ts#L380)

### Parameters

#### defaults

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

#### overrides

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

### Returns

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