-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remove support for down-leveling of TypeScript declarations fil…
…es to ts3.9 to improve performance (#1474) BREAKING CHANGE: This PR removes the TypeScript declaration file down-leveling feature from the JSII compiler to address significant performance issues. Our benchmarks show that >50% of the JSII compile time is spent in the `downlevel-dts` dependency, causing JSII to be 2.7x slower than standard TypeScript compilation. The down-leveling feature was originally added to support TypeScript versions down to 3.9, but analysis shows minimal usage - none of our AWS CDK codebase uses this feature, and only about 12 non-fork repositories on GitHub would be affected by its removal, additionally typescript 3.9 and earlier have been EOL for quite a while on [definitively typed](https://github.com/DefinitelyTyped/DefinitelyTyped?tab=readme-ov-file#support-window). If you found this pr because removing this feature impacted your builds, it is likely because you have [this pattern](https://github.com/sandersn/downlevel-dts?tab=readme-ov-file#type-modifiers-on-importexport-names-45) somewhere in your codebase. Simply refactor that pattern and rebuild. Ensure you also are not seeing the below typesVersion in your app's package.json ```json "typesVersions": { "<=3.9": { "*": [ ".types-compat/ts3.9/*", ".types-compat/ts3.9/*/index.d.ts" ] } }, ``` --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0 --------- Signed-off-by: github-actions <[email protected]> Signed-off-by: Hogan Bobertz <[email protected]> Co-authored-by: github-actions <[email protected]> Co-authored-by: Momo Kornher <[email protected]>
- Loading branch information
1 parent
c0ecad6
commit 7be6ace
Showing
13 changed files
with
6 additions
and
667 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.