It it possible to use plugin-typescript for generating d.ts exclusively? #1573
Unanswered
StreetStrider
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I compile my TS code with sucrase and I want to also generate d.ts for my files. It works out that
@rollup/plugin-typescript
is able to correctly generate typings for me. However, it intervenes in code compiling and I don't want it to. Besides doing double work here, compiling code two times, there is another reason. Sucrase does not change code formatting which is important for me, while plugin-typescript does.Is there any way to completely prevent it from touching any generated code, while still generating typings?
Beta Was this translation helpful? Give feedback.
All reactions