Skip to content
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

Output ECMAScript 6 from Typescript #682

Merged
merged 1 commit into from
Jan 17, 2025
Merged

Output ECMAScript 6 from Typescript #682

merged 1 commit into from
Jan 17, 2025

Conversation

gbirke
Copy link
Member

@gbirke gbirke commented Jan 15, 2025

This commit updates the ESLint target of compiled TypeScript code
to es6. This is a more reasonable target that includes all browsers
since 2015 and just drops some really old browsers. It will avoid
about 50KB of unnecessary polyfills in the compiled banner code.

This change is in line with the browser support list of the MediaWiki
project, see https://www.mediawiki.org/wiki/Compatibility#Browser_support_matrix

The new "lib" values reflect the default "lib" values of ES6.

This commit updates the ESLint target of compiled TypeScript code
to `es6`. This is a more reasonable target that includes all browsers
since 2015 and just drops some really old browsers. It will avoid
about 50KB of unnecessary polyfills in the compiled banner code.

This change is in line with the browser support list of the MediaWiki
project, see https://www.mediawiki.org/wiki/Compatibility#Browser_support_matrix

The new "lib" values reflect the default "lib" values of ES6.
@moiikana moiikana merged commit 3937f1b into main Jan 17, 2025
1 check passed
@moiikana moiikana deleted the update-tsconfig branch January 17, 2025 11:02
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