---
url: /reference/api/Interface.ResolvedDepsConfig.md
---
# Interface: ResolvedDepsConfig

Defined in: [src/features/deps.ts:106](https://github.com/rolldown/tsdown/blob/0b9e1b84d330eca0bab63e4713dc35b26cc535c3/src/features/deps.ts#L106)

## Extends

* `Pick`<[`DepsConfig`](Interface.DepsConfig.md), `"neverBundle"` | `"resolveDepSubpath"`>

## Properties

### alwaysBundle?

```ts
alwaysBundle?: NoExternalFn;
```

Defined in: [src/features/deps.ts:110](https://github.com/rolldown/tsdown/blob/0b9e1b84d330eca0bab63e4713dc35b26cc535c3/src/features/deps.ts#L110)

***

### dts

```ts
dts: Pick<ResolvedDepsConfig, 'alwaysBundle' | 'neverBundle'>
```

Defined in: [src/features/deps.ts:117](https://github.com/rolldown/tsdown/blob/0b9e1b84d330eca0bab63e4713dc35b26cc535c3/src/features/deps.ts#L117)

Override dependency bundling options for declaration file generation.

***

### neverBundle?

```ts
neverBundle?:
  | true
  | string | RegExp | (string | RegExp)[] | ExternalOptionFunction;
```

Defined in: [src/features/deps.ts:65](https://github.com/rolldown/tsdown/blob/0b9e1b84d330eca0bab63e4713dc35b26cc535c3/src/features/deps.ts#L65)

Mark dependencies as external (not bundled).
Accepts strings, regular expressions, or Rolldown's
`ExternalOption`.

Set to `true` to externalize **all** dependencies: every import that
follows npm package naming conventions is marked as external as written,
without resolving it. Other non-relative imports (e.g. `#` subpath
imports and path aliases like `~/`) are resolved, and kept external
only if they resolve into `node_modules`; otherwise the resolved local
file is bundled.

Use [`alwaysBundle`](Interface.DepsConfig.md#alwaysbundle) to opt specific imports back into the bundle.

#### Inherited from

[`DepsConfig`](Interface.DepsConfig.md).[`neverBundle`](Interface.DepsConfig.md#neverbundle)

***

### onlyBundle?

```ts
onlyBundle?: false | (string | RegExp)[];
```

Defined in: [src/features/deps.ts:111](https://github.com/rolldown/tsdown/blob/0b9e1b84d330eca0bab63e4713dc35b26cc535c3/src/features/deps.ts#L111)

***

### onlyImport?

```ts
onlyImport?: (string | RegExp)[];
```

Defined in: [src/features/deps.ts:112](https://github.com/rolldown/tsdown/blob/0b9e1b84d330eca0bab63e4713dc35b26cc535c3/src/features/deps.ts#L112)

***

### resolveDepSubpath?

```ts
resolveDepSubpath?: boolean;
```

Defined in: [src/features/deps.ts:98](https://github.com/rolldown/tsdown/blob/0b9e1b84d330eca0bab63e4713dc35b26cc535c3/src/features/deps.ts#L98)

Resolve dependency subpath imports to their actual package-relative paths
when externalizing packages without an `exports` field.

#### Default

```ts
false
```

#### Inherited from

[`DepsConfig`](Interface.DepsConfig.md).[`resolveDepSubpath`](Interface.DepsConfig.md#resolvedepsubpath)
