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

Defined in: [src/features/devtools.ts:7](https://github.com/rolldown/tsdown/blob/eb40c95efdf7f98d0aa7b0178a3b7322986bd419/src/features/devtools.ts#L7)

## Extends

* `NonNullable`<`InputOptions`\[`"devtools"`]>

## Properties

### clean?

```ts
optional clean?: boolean;
```

Defined in: [src/features/devtools.ts:20](https://github.com/rolldown/tsdown/blob/eb40c95efdf7f98d0aa7b0178a3b7322986bd419/src/features/devtools.ts#L20)

Clean devtools stale sessions.

#### Default

```ts
true
```

***

### sessionId?

```ts
optional sessionId?: string;
```

Defined in: node\_modules/.pnpm/rolldown@1.2.8/node\_modules/rolldown/dist/shared/define-config-DjHYbH6S.d.mts:4031

#### Inherited from

```ts
NonNullable.sessionId
```

***

### ui?

```ts
optional ui?: boolean | Partial<StartOptions>;
```

Defined in: [src/features/devtools.ts:13](https://github.com/rolldown/tsdown/blob/eb40c95efdf7f98d0aa7b0178a3b7322986bd419/src/features/devtools.ts#L13)

**\[experimental]** Enable devtools integration. `@vitejs/devtools` must be installed as a dependency.

Defaults to true, if `@vitejs/devtools` is installed.
