Replies: 1 comment
-
Those are tsc specific options that swc doesn't support. Swc provides transpilation features but does not offer type checking from typescript compiler. For those you need to keep using tsc. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I am currently building an api with fastify and typescript just for fun.
I am new to typescript, but I want my dev exp to be as good as possible and I'm trying to use the best and fastest tools.
First of all, is swc meant for replacing
tsc
?I am used to set some parameters in my tsconfig like
declaration
(to generate.d.ts
files) andnoUncheckedIndexedAccess
. But these are not available (yet?) in.swcrc
.In a project, am I supposed to use swc WITH tsc ?
Am I supposed to have
.swcrc
andtsconfig.json
both present?And how do I bring my
declaration
andnoUncheckedIndexedAccess
parameters to swc compilation?Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions