Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump ES target version to ES2022 (matrix-org#4264)
* Bump ES target version to ES2022 I want to be able to use `WeakRef`, and per element-hq/element-web#24913 (comment), I believe this should be safe. * room.ts: Fix initialisation order It seems that ES2022 causes typescript to change the initialization order of regular properties vs parameter properties (microsoft/TypeScript#45995), so we need to rearrange the initializations to avoid an error. In practice, it might be fine because we have enabled `babel-plugin-transform-class-properties`, which moves the initialization back after the parameter property, but we shoudn't rely on that, and anyway it upsets the linter.
- Loading branch information