-
Notifications
You must be signed in to change notification settings - Fork 535
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Description Target es2021. This should reduce bundle size a little by allowing TypeScript to use slightly newer language features. ## Breaking Changes According to https://github.com/microsoft/FluidFramework/blob/main/ClientRequirements.md to require customers to have es2022 support or polyfill, so this should be allowed. This does NOT change the "lib" version, so customers should not need to add new library polyfills and does not change what APIs are allowed to be used in our code: this only updates the language version to allow using newer language features. As we don't actually have any tooling in place to prevent our dependencies from using newer language (or library) features, its likely we already implicitly have this requirement.
- Loading branch information
1 parent
40d5824
commit 091b2df
Showing
3 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
--- | ||
--- | ||
"section": other | ||
--- | ||
|
||
Target ES2021 | ||
|
||
The TypeScript build for Fluid Framework packages has been updated to target ES2021 instead of ES2020. | ||
This may result in newer JavaScript language features being used. | ||
This does not change TypeScript types, nor the JavaScript libraries being used. | ||
We only support users which support ES2022, so updating to target ES2021 should not break any supported use-case. | ||
Any users which do not have at least ES2021 language feature support may need to transpile out some additional cases after this change. | ||
|
||
This should result in slightly reduced bundle size and slightly improved performance for users not transpiling these features out. | ||
No major impact is expected. |
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