# What changed in rollup-plugin-dts

> 18 changes in rollup-plugin-dts 4 to 6 from its official release notes, upgrade guides and advisories: 2 breaking. Each one cited. Sources checked 2026-11-13. HTML: https://unstale.sh/npm/rollup-plugin-dts/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## rollup-plugin-dts 6

### Tooling

- Adds support for literal export specifiers. (6.5.0) — [release notes](https://github.com/Swatinem/rollup-plugin-dts/blob/6800c1897a58b1cb3086621b486561c76fa67c9b/CHANGELOG.md#650)
- Improves imports for shared chunks. (6.5.0) — [release notes](https://github.com/Swatinem/rollup-plugin-dts/blob/6800c1897a58b1cb3086621b486561c76fa67c9b/CHANGELOG.md#650)
- Adds compatibility with TypeScript versions 6 and 7. (6.5.0) — [release notes](https://github.com/Swatinem/rollup-plugin-dts/blob/6800c1897a58b1cb3086621b486561c76fa67c9b/CHANGELOG.md#650)
- Adds support for dotted namespace syntax. (6.4.0) — [release notes](https://github.com/Swatinem/rollup-plugin-dts/blob/6800c1897a58b1cb3086621b486561c76fa67c9b/CHANGELOG.md#640)
- Adds proper SourceMap support with goto-definition granularity. (6.4.0) — [release notes](https://github.com/Swatinem/rollup-plugin-dts/blob/6800c1897a58b1cb3086621b486561c76fa67c9b/CHANGELOG.md#640)
- Adds compatibility with TS6. (6.4.0) — [release notes](https://github.com/Swatinem/rollup-plugin-dts/blob/6800c1897a58b1cb3086621b486561c76fa67c9b/CHANGELOG.md#640)
- Adds support for child imports and nesting in namespaces. (6.3.0) — [release notes](https://github.com/Swatinem/rollup-plugin-dts/blob/6800c1897a58b1cb3086621b486561c76fa67c9b/CHANGELOG.md#630)

### Fixes and other changes

- Reverts the magic-string upgrade to restore CommonJS compatibility. (6.5.1) — [release notes](https://github.com/Swatinem/rollup-plugin-dts/blob/6800c1897a58b1cb3086621b486561c76fa67c9b/CHANGELOG.md#651)
- Fixes handling of declare module declarations. (6.5.0) — [release notes](https://github.com/Swatinem/rollup-plugin-dts/blob/6800c1897a58b1cb3086621b486561c76fa67c9b/CHANGELOG.md#650)
- Fixes handling of export type declarations. (6.5.0) — [release notes](https://github.com/Swatinem/rollup-plugin-dts/blob/6800c1897a58b1cb3086621b486561c76fa67c9b/CHANGELOG.md#650)
- Fixed a regression related to new SourceMap handling. (6.4.1) — [release notes](https://github.com/Swatinem/rollup-plugin-dts/blob/6800c1897a58b1cb3086621b486561c76fa67c9b/CHANGELOG.md#641)
- Improves naming for declare module paths. (6.4.0) — [release notes](https://github.com/Swatinem/rollup-plugin-dts/blob/6800c1897a58b1cb3086621b486561c76fa67c9b/CHANGELOG.md#640)
- Supports default exports of object and array literals. (6.3.0) — [release notes](https://github.com/Swatinem/rollup-plugin-dts/blob/6800c1897a58b1cb3086621b486561c76fa67c9b/CHANGELOG.md#630)
- Rewrites names of module declarations that use relative paths. (6.3.0) — [release notes](https://github.com/Swatinem/rollup-plugin-dts/blob/6800c1897a58b1cb3086621b486561c76fa67c9b/CHANGELOG.md#630)

## rollup-plugin-dts 4

### Breaking changes

- This release targets Rollup 2.56. (4.0.0) — [release notes](https://github.com/Swatinem/rollup-plugin-dts/blob/HEAD/CHANGELOG.md)
- This release targets TypeScript 4.4. (4.0.0) — [release notes](https://github.com/Swatinem/rollup-plugin-dts/blob/HEAD/CHANGELOG.md)

### Tooling

- Adds preliminary support for nested namespace declarations. (4.0.0) — [release notes](https://github.com/Swatinem/rollup-plugin-dts/blob/HEAD/CHANGELOG.md)

### Fixes and other changes

- Fixes renaming of exports from namespace declarations. (4.0.0) — [release notes](https://github.com/Swatinem/rollup-plugin-dts/blob/HEAD/CHANGELOG.md)
