Skip to content
PluginStats

rolldown-plugin-dts weekly downloads statistics

By sxzz · npm · Vite plugins

A Rolldown plugin to generate and bundle dts files.

View on npm Fresh · Oct 17, 2026

rolldown-plugin-dts has 2,304,456 recorded weekly downloads on npm, a decrease of 53.0% over the past 30 days.

It ranks #153 of 2,256 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by -29.0%.

PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.

Weekly downloads
2,304,456
Official API · Oct 17, 2026
7-day growth
-50.9%
-2.4M weekly downloads
30-day growth
-53.0%
-2.6M weekly downloads
90-day growth
-29.0%
-941.2K weekly downloads
Rank
#153
Among tracked npm listings

About rolldown-plugin-dts

rolldown-plugin-dts

[![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![Unit Test][unit-test-src]][unit-test-href]

A Rolldown plugin that generates and bundles TypeScript declaration files.

Install

Requires Rolldown 1.2.0 or later and Node.js ^22.18.0 || ^24.11.0 || >=26.0.0.

Install the compiler required by your generator:

Oxc is provided by Rolldown and needs no additional dependency.

Usage

See rolldown.config.ts for the project's own setup.

Generators

| Generator | Use it for | Requirement |

| tsc | Full TypeScript compatibility, Vue, and Volar languages | TypeScript 5.x or 6.x | | oxc | Fast generation for isolated declarations | Code compatible with isolatedDeclarations | | tsgo | Experimental TypeScript 7 builds | TypeScript 7 or @typescript/native-preview |

When generator is omitted, the plugin selects:

1. oxc when compilerOptions.isolatedDeclarations is enabled. 2. tsgo when TypeScript 7 is installed as typescript. 3. tsc otherwise.

Volar-based custom languages always require tsc. The tsgo generator does not support custom languages.

Options

General

| Option | Description | Default |

| generator | Declaration generator: tsc, oxc, or tsgo. | Inferred | | entry | Glob or globs selecting files to emit. Supports ! negation and paths relative to cwd. | Rolldown entries | | cwd | Base directory for config discovery, globs, and relative paths. | process.cwd() | | dtsInput | Treat entry files as existing declarations. | false | | emitDtsOnly | Remove non-declaration chunks from the output. | false | | tsconfig | Config path; true discovers one and false disables loading. | Nearest tsconfig.json | | tsconfigRaw | Raw config values merged over the loaded config. | {} | | compilerOptions | Compiler options merged over the loaded config. | {} | | sourcemap | Emit .d.ts.map files. | declarationMap | | resolver | Resolve declaration imports with oxc or tsc. | oxc | | cjsDefault | Convert a single default export to export =. | false | | sideEffects | Mark declaration modules as having side effects. | false | | logger | Logger implementing info, warn, and error. | console |

entry may include files that are not Rolldown entry points:

cjsDefault only changes the emitted export syntax. It does not enable CommonJS-style declaration input.

TypeScript (tsc)

| Option | Description | Default |

| build | Use TypeScript build mode and follow project references. | false | | incremental | Persist build outputs, including .tsbuildinfo, to disk. | Enabled by the matching tsconfig options | | vue | Register the built-in Vue integration using vue-tsc. | false | | parallel | Run tsc or vue-tsc in a separate process. | false | | eager | Load every file listed by tsconfig.json. | false | | newContext | Use an isolated compiler cache instead of the shared context. | false | | emitJs | Generate declarations for JavaScript files with JSDoc types. | allowJs or checkJs |

incremental applies to build mode. When disabled, build outputs stay in memory.

To invalidate a file in the shared compiler cache:

Custom languages

customLanguages registers non-standard source files such as Vue or Astro. Volar integrations must provide both volarTypeScript and createVolarPlugins; they require the tsc generator. vue: true is the preconfigured Vue shortcut.

This API is experimental and may change.

Oxc

oxc accepts IsolatedDeclarationsOptions. Use the top-level sourcemap option for declaration maps.

TypeScript Go

tsgo is experimental and requires a tsconfig.json. It reads compiler options from that file, so tsconfigRaw and compilerOptions are ignored.

Vite

Exclude generated declarations from Oxc transformation. Because oxc.exclude replaces Vite's default exclusions, keep JavaScript files excluded as well:

Code splitting

Declaration chunk names must end in .d:

Limitations

Declaration bundling requires an ESM Rolldown output. The cjs output format is not supported. For CommonJS packages, build the JavaScript output separately and use emitDtsOnly for a second declaration-only build.

The following declaration input cannot be bundled:

• CommonJS export assignments such as export = value. • CommonJS import aliases such as import value = require('package'). • Script-style ambient declarations, such as declare module 'package' { ... } or unexported top-level declare statements. Bundled declaration chunks are always modules, which would change the meaning of these declarations.

Mark dependencies that use unsupported declaration syntax as external.

Credits

Inspired by rollup-plugin-dts, with an independent implementation. Its MIT-licensed test suite is used with permission.

Sponsors

License

MIT License © 2025-PRESENT Kevin Deng

Description from the npm listing.

  • rolldown
  • plugin
  • rolldown-plugin
  • vite-plugin
  • dts
  • typescript
  • vue
  • jsdoc
  • volar

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

rolldown-plugin-dts weekly downloads on npm, last 90 days: 2,304,456 weekly downloads as of Oct 17, 2026, -29.0% over 90 days.rolldown-plugin-dtsWeekly downloads on npm · Last 90 days2,304,456downloads / week-29.0% over 90 days2M3M4M5M6M7MJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 21, 2026 – Oct 17, 2026 · 89 observations · Updated Oc…pluginstats.com
rolldown-plugin-dts weekly downloads on npm, last 90 days: 2,304,456 weekly downloads as of Oct 17, 2026, -29.0% over 90 days.
PNG SVG

7/30/90-day growth

rolldown-plugin-dts weekly downloads growth on npm: -50.9% over 7 days, -53.0% over 30 days, -29.0% over 90 days.rolldown-plugin-dtsWeekly downloads growth on npm2,304,456downloads / week now7-day growth-2,392,441 weekly downlo…-50.9%30-day growth-2,596,898 weekly downlo…-53.0%90-day growth-941,222 weekly downloads-29.0%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
rolldown-plugin-dts weekly downloads growth on npm: -50.9% over 7 days, -53.0% over 30 days, -29.0% over 90 days.
PNG SVG

Ranking history

rolldown-plugin-dts npm ranking history: currently #153 (by weekly downloads).rolldown-plugin-dtsnpm ranking · by weekly downloads · Last 90 days#153current rank#151#152#153#154#155Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 18, 2026 – Oct 19, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
rolldown-plugin-dts npm ranking history: currently #153 (by weekly downloads).
PNG SVG

Listing placement

All npm2,256 listings · 113 pages · 1,129 shown · page 8, #13 (overall #153)
All npm: every listing in weekly downloads order
PNG SVG

Listing placement

Vite plugins250 listings · 13 pages · page 1, #9 (overall #9)
Vite plugins: every listing in weekly downloads order
PNG SVG

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a log scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (121)
Recent weekly downloads observations for rolldown-plugin-dts
Date (UTC)Weekly downloadsChange vs. previous
2,304,456-482K
2,786,406-2.6K
2,789,037-1M
3,792,255-980.4K
4,772,6940
4,772,694+46.2K
4,726,543+29.6K
4,696,897+12.1K
4,684,822+38.6K
4,646,207+25.2K
4,621,028+24.7K
4,596,296-970.1K
5,566,353-7K
5,573,378—

Similar npm Vite plugins plugins

All 20 rolldown-plugin-dts alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/rolldown-plugin-dts. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.