From 935133f53af2b0efab5d22effff1239dc0e36147 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Fri, 27 Aug 2021 10:12:59 +1000 Subject: feat(cli): Update to TypeScript 4.4 (#11678) --- cli/module_graph.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cli/module_graph.rs') 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!({ -- cgit v1.2.3