diff --git a/README.md b/README.md index 29f5a87..57dc530 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,19 @@ DTS snapshot plugin for Rolldown npm i rolldown-plugin-dts-snapshot ``` +## Usage + +```ts +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()], +}) +``` + ## Sponsors