npm / rollup-plugin-dts
rollup-plugin-dts
What changed in rollup-plugin-dts 4 to 6, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-13.
2 breaking8 tooling8 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initrollup-plugin-dts 614 changes
Tooling 7
Adds support for literal export specifiers.
Improves imports for shared chunks.
Adds compatibility with TypeScript versions 6 and 7.
Adds support for dotted namespace syntax.
Adds proper SourceMap support with goto-definition granularity.
Adds compatibility with TS6.
Adds support for child imports and nesting in namespaces.
Fixes and other changes 7
Reverts the magic-string upgrade to restore CommonJS compatibility.
Fixes handling of declare module declarations.
Fixes handling of export type declarations.
Fixed a regression related to new SourceMap handling.
Improves naming for declare module paths.
Supports default exports of object and array literals.
Rewrites names of module declarations that use relative paths.
rollup-plugin-dts 44 changes
Breaking changes 2
This release targets Rollup 2.56.
This release targets TypeScript 4.4.
Tooling 1
Adds preliminary support for nested namespace declarations.
Fixes and other changes 1
Fixes renaming of exports from namespace declarations.