Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/sxzz/rolldown-plugin-dts-snapshot. DTS snapshot plugin for Rolldown
Something went wrong. Try again.
TypeScript 99%
JavaScript <1%
README.md
rolldown-plugin-dts-snapshot #
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 true
*/
includeNonExport?: boolean
/**
* @default '[cwd]/dts.snapshot.json'
*/
saveTo?: string
}
Sponsors #
License #
MIT License © 2025-PRESENT Kevin Deng