From 02995191f7a7f754b07e8138bbbe85e76309ca94 Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Wed, 29 Oct 2025 04:08:57 +0100 Subject: [PATCH] fix(curriculum): use more recent target for TS compilation (#63144) --- .../browser-scripts/modules/typescript-compiler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/client-plugins/browser-scripts/modules/typescript-compiler.ts b/tools/client-plugins/browser-scripts/modules/typescript-compiler.ts index 80c1d45c917..ca46cf4cc91 100644 --- a/tools/client-plugins/browser-scripts/modules/typescript-compiler.ts +++ b/tools/client-plugins/browser-scripts/modules/typescript-compiler.ts @@ -24,7 +24,7 @@ export class Compiler { const tsvfs = this.tsvfs; const compilerOptions: CompilerOptions = { - target: ts.ScriptTarget.ES2015, + target: ts.ScriptTarget.ES2024, module: ts.ModuleKind.Preserve, // Babel is handling module transformation, so TS should leave them alone. skipLibCheck: true, // TODO: look into why this is needed. Are we doing something wrong? Could it be that it's not "synced" with this TS version? // from the docs: "Note: it's possible for this list to get out of