From d52151e7875d9e45ef1f75ac429aec7838344d18 Mon Sep 17 00:00:00 2001 From: Rhiannon Morris Date: Fri, 13 Dec 2024 02:53:47 +0100 Subject: [PATCH] use newer js version since OffscreenCanvas is 2022ish --- Makefile | 2 +- tsconfig.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 30e98e1..dba6522 100644 --- a/Makefile +++ b/Makefile @@ -38,7 +38,7 @@ $(BUILDDIR)/%: % $(BUILDDIR)/%.js: %.ts @echo '[tsc] ' $< tsc --strict --noUncheckedIndexedAccess --noEmitOnError \ - --lib dom,es2023 --target es2015 \ + --lib dom,es2023 --target es2022 \ --outDir $(dir $@) $^ $(BUILDDIR)/rainbow-quox/palette.svg: rainbow-quox/make-palette/* diff --git a/tsconfig.json b/tsconfig.json index 309f42d..8778022 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,7 @@ "strict": true, "noUncheckedIndexedAccess": true, "noEmitOnError": true, - "lib": ["ES2021", "dom"], - "target": "ES2015" + "lib": ["ES2023", "dom"], + "target": "ES2022" } }