Issue
I want to disable typescript when using Deno.
I know I can pass --config .deno
but how do I tell the compiler to just support vanilla js and no typescript?
{
"compilerOptions": {
"checkJs": true
}
}
I'm aware of --no-check but wondering if I can set this in a config file.
Solution
It is not possible to opt out of compiler transpilation of TypeScript source code when using Deno.
V8 (the JS engine used by Deno) does not execute TypeScript, so all TS must be transpiled to JavaScript in order to be run.
If you don't want to use TypeScript, then write JavaScript source files and use the --no-check
CLI option to ensure that all dependencies (including transitive) emit no compiler diagnostics.
Answered By - jsejcksn
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.