summaryrefslogtreecommitdiff
path: root/cli/module_graph.rs
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2021-08-27 10:12:59 +1000
committerGitHub <noreply@github.com>2021-08-27 10:12:59 +1000
commit935133f53af2b0efab5d22effff1239dc0e36147 (patch)
treef1cd283e50618e0cce4f70ff59a1e204856a592b /cli/module_graph.rs
parentb9a965c607966efff91118e9a6f604c8f48ba88e (diff)
feat(cli): Update to TypeScript 4.4 (#11678)
Diffstat (limited to 'cli/module_graph.rs')
-rw-r--r--cli/module_graph.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/module_graph.rs b/cli/module_graph.rs
index 44939e68f..66fca5342 100644
--- a/cli/module_graph.rs
+++ b/cli/module_graph.rs
@@ -831,6 +831,8 @@ impl Graph {
"target": "esnext",
"tsBuildInfoFile": "deno:///.tsbuildinfo",
"useDefineForClassFields": true,
+ // TODO(@kitsonk) remove for Deno 1.15
+ "useUnknownInCatchVariables": false,
}));
if options.emit {
config.merge(&json!({
@@ -991,6 +993,8 @@ impl Graph {
"strict": true,
"target": "esnext",
"useDefineForClassFields": true,
+ // TODO(@kitsonk) remove for Deno 1.15
+ "useUnknownInCatchVariables": false,
}));
let opts = match options.bundle_type {
BundleType::Module | BundleType::Classic => json!({