Skip to content

Conversation

@Who-is-PS
Copy link
Member

Description

This PR changes the TypeScript target from the current setting to "ES2019" instead of "ES2021" (as proposed in PR #3801). This is to address build failures in the dry run while still improving TypeScript compatibility.
The change is similar to what was done in the component-toolkit repository (PR #169), where changing to ES2019 was successful without causing downstream failures with Webpack 4 compatibility.

Related links, issue #, if available:
Original PR with ES2021 target (to be closed): #3801
Similar successful change in component-toolkit: cloudscape-design/component-toolkit#169

How has this been tested?

Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@codecov
Copy link

codecov bot commented Oct 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.14%. Comparing base (f44f577) to head (61226e8).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3986      +/-   ##
==========================================
- Coverage   97.18%   97.14%   -0.04%     
==========================================
  Files         857      857              
  Lines       25303    25045     -258     
  Branches     8967     8967              
==========================================
- Hits        24590    24331     -259     
+ Misses        707      665      -42     
- Partials        6       49      +43     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

TrevorBurnham and others added 4 commits October 31, 2025 10:59
All targeted browsers support ES2021 syntax. This change provides an
immediate bundle size reduction, with the potential for further gains if
code is rewritten to take advantage of optional chaining and nullish
coalescing.

* Optional chaining:
  https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining#browser_compatibility
* Nullish coalescing:
  https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing#browser_compatibility
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants