-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
build: Update TS target to es2020
everywhere
#17709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
node-overhead report 🧳Note: This is a synthetic benchmark with a minimal express app and does not necessarily reflect the real-world performance impact in an application.
|
4667808
to
48ccf52
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
m: This concerns all e2e tests: I think it'd make more sense to keep the target at the respective framework's default. If nothing else, this should help us identify incompatibilities that likely also surface in users' apps. WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this generally is true and we do not need to keep all of these in sync/at latest always. I figured it's OK to adjust this once but no strong feeling, can also keep them as they were!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reverted the e2e test changes :)
"target": "es2020", | ||
"declarationMap": false, | ||
"lib": ["DOM", "ES2018"], | ||
"lib": ["DOM", "es2020"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch! Turns out we could have done this a lot sooner for Angular, ever since we switched to NG14 as the min version (https://v14.angular.io/guide/angular-package-format#es2020-language-level).
447bfa0
to
4f534cf
Compare
0f60f63
to
deb5889
Compare
deb5889
to
fb31cc3
Compare
size-limit report 📦
|
fb31cc3
to
96b9292
Compare
We already officially only support es2020, so we may as well also use this as lib & target everywhere.