mirror of
https://github.com/denoland/deno.git
synced 2024-12-27 09:39:08 -05:00
feat(unstable): enable importsNotUsedAsValues by default (#7413)
This commit is contained in:
parent
0d1f626edd
commit
fbb18d40d3
2 changed files with 4 additions and 1 deletions
|
@ -612,6 +612,7 @@ impl TsCompiler {
|
|||
"inlineSourceMap": true,
|
||||
// TODO(lucacasonato): enable this by default in 1.5.0
|
||||
"isolatedModules": unstable,
|
||||
"importsNotUsedAsValues": if unstable { "error" } else { "remove" },
|
||||
"jsx": "react",
|
||||
"lib": lib,
|
||||
"module": "esnext",
|
||||
|
@ -1248,6 +1249,7 @@ pub async fn runtime_compile(
|
|||
"esModuleInterop": true,
|
||||
// TODO(lucacasonato): enable this by default in 1.5.0
|
||||
"isolatedModules": unstable,
|
||||
"importsNotUsedAsValues": if unstable { "error" } else { "remove" },
|
||||
"jsx": "react",
|
||||
"module": "esnext",
|
||||
"sourceMap": true,
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"isolatedModules": true
|
||||
"isolatedModules": true,
|
||||
"importsNotUsedAsValues": "error"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue