From 8c7399725d32992baf55c47af34beaa465a0e73c Mon Sep 17 00:00:00 2001 From: Joscha Date: Sun, 22 Oct 2023 01:00:33 +0200 Subject: [PATCH] Switch to ES2022 I looked through caniuse.com and it seemed like almost much all features were supported by newer browsers. Curious to see whether this'll work out or if everything will blow up at some point. --- .vscode/settings.json | 1 - tsconfig.json | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index d4a7a5c..27e1208 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -7,5 +7,4 @@ "rust-analyzer.server.extraEnv": { "SQLX_OFFLINE": "false", }, - } diff --git a/tsconfig.json b/tsconfig.json index b3a43f7..8cc5bb7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "include": [ "scripts/**/*" ], "compilerOptions": { - "target": "ES2015", + "target": "ES2022", // Should be fine according to caniuse.com "module": "ES2015", "rootDir": "scripts", "outDir": "target/static",