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 · Dec 6, 2026

rolldown-plugin-dts has 8,999,454 recorded weekly downloads on npm, an increase of 20.2% over the past 30 days, ranking #148 of 3,247 tracked listings.

Weekly downloads
8,999,454
Official API · Dec 5, 2026
7-day growth
+8.1%
+676.3K weekly downloads
30-day growth
+20.2%
+1.5M weekly downloads
90-day growth
+72.2%
+3.8M weekly downloads
Rank
#148
▼ 3 in 7 days

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.

npm i -D rolldown-plugin-dts

Install the compiler required by your generator:

npm i -D typescript@^6          # tsc
npm i -D typescript@7.1.0-beta  # tsgo API
npm i -D tsrs                   # tsrs API

Oxc is provided by Rolldown and needs no additional dependency.

Usage

// rolldown.config.ts
import { defineConfig } from 'rolldown'
import { dts } from 'rolldown-plugin-dts'

export default defineConfig({
  input: 'src/index.ts',
  plugins: [dts()],
  output: {
    dir: 'dist',
    format: 'es',
  },
})

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

Declaration-only builds

With dtsOnly: true, each entry resolves to its declaration and the build emits no JavaScript. Entries may be source files, existing .d.ts files, or both:

export default defineConfig({
  input: ['src/index.ts', 'types/globals.d.ts'],
  plugins: [dts({ dtsOnly: true })],
  output: { dir: 'dist' },
})

Generators

GeneratorUse it forRequirement
tscFull TypeScript compatibilityTypeScript 5.x or 6.x
oxcFast generation for isolated declarationsCode compatible with isolatedDeclarations
tsgoTypeScript Go's asynchronous declaration emit APITypeScript 7.1 or later
tsrstsrs, highly experimentalLatest tsrs release

When generator is omitted, the plugin selects:

  1. oxc when compilerOptions.isolatedDeclarations is enabled.
  2. tsgo when typescript exposes Program.prototype.getDeclarationEmit, or when TypeScript 7.0 is installed (deprecated, see below).
  3. tsc otherwise.

Automatic selection only inspects typescript and never selects tsrs. Selecting tsgo explicitly requires TypeScript 7.1 or later, or the deprecated TypeScript 7.0 backend below.

[!WARNING] With TypeScript 7.0, tsgo falls back to running the tsgo CLI. This backend is deprecated and will be removed in the next minor; upgrade to TypeScript 7.1 or later. It does not support custom languages, and among the tsgo.* options only tsgo.path (the executable to run) applies.

generator also accepts an object implementing the exported Generator interface.

dts({
  generator: 'oxc',
})

Options

General
OptionDescriptionDefault
generatorBuilt-in generator name or a custom Generator implementation.Inferred
tscOptions for the built-in tsc generator.{}
entryGlob or globs filtering which Rolldown entries emit declarations. Supports ! negation and paths relative to cwd.All Rolldown entries
cwdBase directory for config discovery, globs, and relative paths.process.cwd()
dtsOnlyBuild declarations only. See Declaration-only builds.false
tsconfigConfig path; true discovers one and false disables loading.Nearest tsconfig.json
tsconfigRawRaw config values merged over the loaded config.{}
compilerOptionsCompiler options merged over the loaded config.{}
sourcemapEmit .d.ts.map files.declarationMap
resolverResolve declaration imports with oxc or tsc.oxc
cjsDefaultConvert a single default export to export =.false
sideEffectsMark declaration modules as having side effects.false
typecheckFail the build on type errors, including declaration emit errors. Not supported by oxc.false
loggerLogger implementing info, warn, and error.console

tsc.*, oxc.*, tsgo.*, and tsrs.* apply only to their respective generators.

Without typecheck, declarations are emitted whenever TypeScript produces them, even if it reports errors. For example, a type that cannot be serialized becomes any. Enable typecheck to fail the build on such errors.…

Description from the npm listing.

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

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

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

Adoption over time

rolldown-plugin-dts weekly downloads on npm, last 90 days: 8,999,454 weekly downloads as of Dec 5, 2026, +72.2% over 90 days.rolldown-plugin-dtsWeekly downloads on npm · Last 90 days8,999,454downloads / week+72.2% over 90 days02M4M6M8M10MSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
rolldown-plugin-dts weekly downloads on npm, last 90 days: 8,999,454 weekly downloads as of Dec 5, 2026, +72.2% over 90 days.

7/30/90-day growth

rolldown-plugin-dts weekly downloads growth on npm: +8.1% over 7 days, +20.2% over 30 days, +72.2% over 90 days.rolldown-plugin-dtsWeekly downloads growth on npm8,999,454downloads / week now7-day growth+676,264 weekly downloads+8.1%30-day growth+1,513,047 weekly downlo…+20.2%90-day growth+3,773,732 weekly downlo…+72.2%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
rolldown-plugin-dts weekly downloads growth on npm: +8.1% over 7 days, +20.2% over 30 days, +72.2% over 90 days.

Ranking history

rolldown-plugin-dts npm ranking history: currently #148 (by weekly downloads).rolldown-plugin-dtsnpm ranking · by weekly downloads · Last 90 days#148current rank#142#144#146#148#150#152#154#156Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
rolldown-plugin-dts npm ranking history: currently #148 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 8, #8 (overall #148)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins300 listings · 15 pages · page 1, #9 (overall #9)
Vite plugins: every listing in weekly downloads order

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 linear 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 (170)
Recent weekly downloads observations for rolldown-plugin-dts
Date (UTC)Weekly downloadsChange vs. previous
8,999,454-643.3K
9,642,731+413.1K
9,229,606+447.8K
8,781,846+212.1K
8,569,762+238.9K
8,330,844+54.3K
8,276,555-46.6K
8,323,190-56.5K
8,379,687-240.1K
8,619,816-324.7K
8,944,534-19.4K
8,963,903+45K
8,918,952+54.7K
8,864,282—

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 Dec 6, 2026. See the methodology.