'Is it possible to use Deno without typescript?
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 1:[1]
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
