Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

rolldown-plugin-dts-snapshot

sxzz0MIT0.3.2TypeScript support: included

DTS snapshot plugin for Rolldown

readme

rolldown-plugin-dts-snapshot

npm version npm downloads Unit Test

DTS snapshot plugin for Rolldown

Install

npm i rolldown-plugin-dts-snapshot

Usage

tsdown

import { DtsSnapshot } from 'rolldown-plugin-dts-snapshot'
import { defineConfig } from 'tsdown'

export default defineConfig({
  entry: 'src/index.ts',
  dts: true,
  plugins: [DtsSnapshot()],
})

Rolldown

import { defineConfig } from 'rolldown'
import { dts } from 'rolldown-plugin-dts'
import { DtsSnapshot } from 'rolldown-plugin-dts-snapshot'

export default defineConfig({
  input: 'src/index.ts',
  plugins: [dts(), DtsSnapshot()],
})

Options

export interface Options {
  /**
   * @default /\.d\.[cm]?ts$/
   */
  include?: FilterPattern
  exclude?: FilterPattern
  /**
   * @default false
   */
  includeNonExport?: boolean
  /**
   * @default '[cwd]/dts.snapshot.json'
   */
  saveTo?: string
}

Sponsors

License

MIT License © 2025-PRESENT Kevin Deng