From 7a0bf9ff20b18007529ec9f99fafbd66f266b8de Mon Sep 17 00:00:00 2001 From: jbpenrath Date: Mon, 1 Jul 2024 11:41:55 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7(frontend)=20upgrade=20typescript?= =?UTF-8?q?=20target=20to=20es2018?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With the latest upgrade of typescript, a type error is raised about the use of regex with capturing group. Indeed, this feature is available with es2018, and we are currently using es6 as typescript target. But currently our browser support list allow us to upgrade the typescript target from es6 to es2018. https://caniuse.com/?search=es2018 --- src/frontend/tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/tsconfig.json b/src/frontend/tsconfig.json index 966deb41d6..888691a378 100644 --- a/src/frontend/tsconfig.json +++ b/src/frontend/tsconfig.json @@ -25,7 +25,7 @@ "skipLibCheck": true, "strict": true, "sourceMap": true, - "target": "es6" + "target": "es2018" }, "include": ["./**/*"] }