microsoft / microsoft/AdaptiveCards

[Feature Request] Update TS code to target ES2020

Open
#8,929 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Request
Dominant language
C#
Stars
2k
Forks
595
Avg merge
1d 19h
Merged PRs (30d)
1

Description

Problem Statement

Currently Typescript code in this repo targets ES5, which is known to generate larger JS code. All modern browsers have supported ES6 features. If we change it to targeting ES6 (aka ES2020), it will result in significantly smaller code. This in turn help improve performance of consuming apps because of smaller bundles.

Proposed solution

Change the target attribute of tsconfig.json file to ES2020

Alternatives or Workarounds

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open tsconfig.json and inspect the current target setting and nearby TypeScript configuration. Change the target to ES2020, then verify the repository’s TypeScript build and confirm that generated code and consuming applications still work as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.