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 Stale · Oct 18, 2026

rolldown-plugin-dts has 2,738,726 recorded weekly downloads on npm, a decrease of 43.1% over the past 30 days, ranking #150 of 2,391 tracked listings.

Weekly downloads
2,738,726
Official API · Oct 18, 2026
7-day growth
-42.1%
-2M weekly downloads
30-day growth
-43.1%
-2.1M weekly downloads
90-day growth
-14.6%
-468.7K weekly downloads
Rank
#150
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.

npm i -D rolldown-plugin-dts

Install the compiler required by your generator:

npm i -D typescript@^6              # tsc
npm i -D @typescript/native-preview # tsgo, unless TypeScript 7 is installed

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.

Generators

GeneratorUse it forRequirement
tscFull TypeScript compatibility, Vue, and Volar languagesTypeScript 5.x or 6.x
oxcFast generation for isolated declarationsCode compatible with isolatedDeclarations
tsgoExperimental TypeScript 7 buildsTypeScript 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.

dts({
  generator: 'oxc',
})

Options

General
OptionDescriptionDefault
generatorDeclaration generator: tsc, oxc, or tsgo.Inferred
entryGlob or globs selecting files to emit. Supports ! negation and paths relative to cwd.Rolldown entries
cwdBase directory for config discovery, globs, and relative paths.process.cwd()
dtsInputTreat entry files as existing declarations.false
emitDtsOnlyRemove non-declaration chunks from the output.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
loggerLogger implementing info, warn, and error.console

entry may include files that are not Rolldown entry points:

dts({
  entry: ['src/**/*.ts', '!src/icons/**'],
})

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

TypeScript (tsc)
OptionDescriptionDefault
buildUse TypeScript build mode and follow project references.false
incrementalPersist build outputs, including .tsbuildinfo, to disk.Enabled by the matching tsconfig options
vueRegister the built-in Vue integration using vue-tsc.false
parallelRun tsc or vue-tsc in a separate process.false
eagerLoad every file listed by tsconfig.json.false
newContextUse an isolated compiler cache instead of the shared context.false
emitJsGenerate 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:

import {
  globalContext,
  invalidateContextFile,
} from 'rolldown-plugin-dts/tsc-context'

invalidateContextFile(globalContext, 'src/foo.ts')
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.…

Description from the npm listing.

  • rolldown
  • plugin
  • rolldown-plugin
  • vite-plugin
  • dts
  • typescript
  • 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: 2,738,726 weekly downloads as of Oct 18, 2026, -14.6% over 90 days.rolldown-plugin-dtsWeekly downloads on npm · Last 90 days2,738,726downloads / week-14.6% over 90 days2M3M4M5M6M7MJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 23, 2026 – Oct 18, 2026 · 88 observations · Updated Oc…pluginstats.com
rolldown-plugin-dts weekly downloads on npm, last 90 days: 2,738,726 weekly downloads as of Oct 18, 2026, -14.6% over 90 days.

7/30/90-day growth

rolldown-plugin-dts weekly downloads growth on npm: -42.1% over 7 days, -43.1% over 30 days, -14.6% over 90 days.rolldown-plugin-dtsWeekly downloads growth on npm2,738,726downloads / week now7-day growth-1,987,817 weekly downlo…-42.1%30-day growth-2,077,194 weekly downlo…-43.1%90-day growth-468,680 weekly downloads-14.6%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
rolldown-plugin-dts weekly downloads growth on npm: -42.1% over 7 days, -43.1% over 30 days, -14.6% over 90 days.

Ranking history

rolldown-plugin-dts npm ranking history: currently #150 (by weekly downloads).rolldown-plugin-dtsnpm ranking · by weekly downloads · Last 90 days#150current rank#148#149#150#151#152#153#154#155Jul 23Aug 7Aug 22Sep 6Sep 21Oct 6Oct 21rankOct 18, 2026 – Oct 21, 2026 · 4 observations · Updated Oct 18, 2026pluginstats.com
rolldown-plugin-dts npm ranking history: currently #150 (by weekly downloads).

Listing placement

All npm2,389 listings · 120 pages · 1,196 shown · page 8, #10 (overall #150)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins257 listings · 13 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 (122)
Recent weekly downloads observations for rolldown-plugin-dts
Date (UTC)Weekly downloadsChange vs. previous
2,738,726+434.3K
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—

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