Title: Remove older emit support over time · Issue #47573 · microsoft/TypeScript · GitHub
Open Graph Title: Remove older emit support over time · Issue #47573 · microsoft/TypeScript
X Title: Remove older emit support over time · Issue #47573 · microsoft/TypeScript
Description: Suggestion 🔍 Search Terms remove emit target es3 es5 ✅ Viability Checklist My suggestion meets these guidelines: This wouldn't be a breaking change in existing TypeScript/JavaScript code This wouldn't change the runtime behavior of exist...
Open Graph Description: Suggestion 🔍 Search Terms remove emit target es3 es5 ✅ Viability Checklist My suggestion meets these guidelines: This wouldn't be a breaking change in existing TypeScript/JavaScript code This would...
X Description: Suggestion 🔍 Search Terms remove emit target es3 es5 ✅ Viability Checklist My suggestion meets these guidelines: This wouldn't be a breaking change in existing TypeScript/JavaScript code This w...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/47573
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Remove older emit support over time","articleBody":"# Suggestion\r\n\r\n## 🔍 Search Terms\r\n\r\nremove emit target es3 es5\r\n\r\n## ✅ Viability Checklist\r\n\r\n\r\nMy suggestion meets these guidelines:\r\n\r\n* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code\r\n* [x] This wouldn't change the runtime behavior of existing JavaScript code\r\n* [x] This could be implemented without emitting different JS based on the types of the expressions\r\n* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)\r\n* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).\r\n\r\n## ⭐ Suggestion\r\n\r\nFollowing #47572, once the default target has been raised to a new value, can TypeScript _remove_ emit support for the no-longer-default old version in either that same major version or the next one?\r\n\r\nUsing the example schedule in that issue:\r\n\r\n* Remove es3 emit support for 5.0, making es5 the lowest supported emit target\r\n* Remove es5 emit support for 6.0, making es2015 the lowest supported emit target\r\n* _...and so on_\r\n\r\n## 📃 Motivating Example\r\n\r\nSupporting emit to low emit targets such as ES3/5 worsens:\r\n* Dev cost for some TypeScript features: e.g. #29374's changes were mostly in emit\r\n* Output package size: e.g. `src/compiler/transformers/es2015.ts` has \u003e4k lines today (about 10% the size of `src/compiler/checker.ts`)\r\n\r\n## 💻 Use Cases\r\n\r\nIt'd be nice to have a leaner TypeScript without the cost of supporting emit for syntax compatibility the vast majority of runtimes no longer need.\r\n","author":{"url":"https://github.com/JoshuaKGoldberg","@type":"Person","name":"JoshuaKGoldberg"},"datePublished":"2022-01-24T01:59:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/47573/TypeScript/issues/47573"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6f69a306-9498-33be-9462-b02aa359e94a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E66E:3996D:1145B8B:1750145:6A4D68C3 |
| html-safe-nonce | eca83d1553c321935ede44a56bbc314f0d9b374005f34e117add3577bb204b2c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjZFOjM5OTZEOjExNDVCOEI6MTc1MDE0NTo2QTRENjhDMyIsInZpc2l0b3JfaWQiOiI2NDkwMzAxNjQ4ODc0NTk2NTQ3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0a60e96f82b584995fa1bde5c337614bc10590e7dd8eb7b90f0e4bae3d4096be |
| hovercard-subject-tag | issue:1112077751 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/47573/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a67a1a478394fca43ba9ea6b8e7f03c53044be5c927e56dcb5bb417b5f47b595/microsoft/TypeScript/issues/47573 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a67a1a478394fca43ba9ea6b8e7f03c53044be5c927e56dcb5bb417b5f47b595/microsoft/TypeScript/issues/47573 |
| og:image:alt | Suggestion 🔍 Search Terms remove emit target es3 es5 ✅ Viability Checklist My suggestion meets these guidelines: This wouldn't be a breaking change in existing TypeScript/JavaScript code This would... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JoshuaKGoldberg |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7db3950e3f59095e20a9789440c3dd554efc62d434882ead06ae05b5815605b9 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cd8f6a71db61d6012a0cbb134be844fdbe9b8a45 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width