Repository navigation
How do I apply plugins only to generated JS (i.e. exclude dts)? #406
|
I'm trying to apply some rollup plugins via tsdown's Is there a way to make existing plugins only apply to the generated JS files? |
Answered by
TomerAberbach
Aug 2, 2025
Replies: 1 comment
|
Ah, I think this is it :) export default defineConfig([
{
entry: `src/index.ts`,
plugins: [...],
},
{ dts: { emitDtsOnly: true } },
]) |
0 replies
Answer selected by
TomerAberbach
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ah, I think this is it :)