From 3ae3525a3c4aa1408cf94f5f473a1d5481c176cf Mon Sep 17 00:00:00 2001 From: Evan Wallace Date: Thu, 19 Dec 2024 18:40:06 -0500 Subject: [PATCH] fix #3990: add credit for the `es2024` change --- CHANGELOG.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7eb5cfe757..81474fbf1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,19 @@ * Allow `es2024` as a target in `tsconfig.json` ([#4004](https://github.com/evanw/esbuild/issues/4004)) - TypeScript recently [added `es2024`](https://devblogs.microsoft.com/typescript/announcing-typescript-5-7/#support-for---target-es2024-and---lib-es2024) as a compilation target, so esbuild now supports this in the `target` field of `tsconfig.json` files. As a reminder, the only thing that esbuild uses this field for is determining whether or not to use legacy TypeScript behavior for class fields (you can read more in [the documentation](https://esbuild.github.io/content-types/#tsconfig-json)). + TypeScript recently [added `es2024`](https://devblogs.microsoft.com/typescript/announcing-typescript-5-7/#support-for---target-es2024-and---lib-es2024) as a compilation target, so esbuild now supports this in the `target` field of `tsconfig.json` files, such as in the following configuration file: + + ```json + { + "compilerOptions": { + "target": "ES2024" + } + } + ``` + + As a reminder, the only thing that esbuild uses this field for is determining whether or not to use legacy TypeScript behavior for class fields. You can read more in [the documentation](https://esbuild.github.io/content-types/#tsconfig-json). + + This fix was contributed by [@billyjanitsch](https://github.com/billyjanitsch). * Allow automatic semicolon insertion after `get`/`set`