René's URL Explorer Experiment


Title: Better compile time polyfill support by splitting lib .d.ts files into smallest segments possible · Issue #25567 · microsoft/TypeScript · GitHub

Open Graph Title: Better compile time polyfill support by splitting lib .d.ts files into smallest segments possible · Issue #25567 · microsoft/TypeScript

X Title: Better compile time polyfill support by splitting lib .d.ts files into smallest segments possible · Issue #25567 · microsoft/TypeScript

Description: Search Terms lib, polyfill Suggestion Split the existing lib .d.ts files into smaller feature segments so each feature can be included selectively as desired. Use Cases I work at a company with a large collection of independently shippin...

Open Graph Description: Search Terms lib, polyfill Suggestion Split the existing lib .d.ts files into smaller feature segments so each feature can be included selectively as desired. Use Cases I work at a company with a l...

X Description: Search Terms lib, polyfill Suggestion Split the existing lib .d.ts files into smaller feature segments so each feature can be included selectively as desired. Use Cases I work at a company with a l...

Opengraph URL: https://github.com/microsoft/TypeScript/issues/25567

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Better compile time polyfill support by splitting lib .d.ts files into smallest segments possible","articleBody":"\u003c!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨\r\n\r\nHalf of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Please read the FAQ first, especially the \"Common Feature Requests\" section.\r\n\r\n-->\r\n\r\n## Search Terms\r\nlib, polyfill\r\n\r\n## Suggestion\r\n\r\n\u003c!-- A summary of what you'd like to see added or changed -->\r\n\r\nSplit the existing lib .d.ts files into smaller feature segments so each feature can be included selectively as desired.\r\n\r\n## Use Cases\r\n\r\n\u003c!--\r\nWhat do you want to use this for?\r\nWhat shortcomings exist with current approaches?\r\n-->\r\n\r\nI work at a company with a large collection of independently shipping web modules/apps.\r\n\r\nToday we use the following method to detect at compile time if a polyfill will be required for the browsers we support (IE11+ in our case).\r\n\r\n1. Setup our tsconfig.json lib to only specify \"es5\" and \"dom\"\r\n2. If a newer JS feature is desired selectively add its definition to tsconfig.json lib and polyfill that specific feature\r\n\r\nThe problem is that the current definitions for tsconfig.json lib are often much larger then we would like.\r\n\r\nFor example:\r\nIf we want to use the feature `Array[].findIndex` using this above described method we would add \"es2015.core\" to the tsconfig.json and a corresponding `Array[].findIndex` polyfill. This works but unintentionally results in a plethora of other features (`Array.find`, `Array.from`, ...) that now will compile without problems but are not polyfilled.\r\n\r\nIf we want to be sure to avoid unintentionally using a \"es2015.core\" feature we have not polyfilled we would have to polyfill all of the features but would really like to avoid doing that.\r\n\r\n## Examples\r\n\r\n\u003c!-- Show how this would be used and what the behavior would be -->\r\n\r\nWould be great if the type definitions were split in a similar way to [core-js](https://github.com/zloirock/core-js). They do a fantastic job of allowing selective polyfills as well as collections of polyfills.\r\n\r\nso for the array methods \"es2015.core\" would be split into \"es2015.array\" which would be a composition of independently usable more specific cases (for example \"es2015.array.findIndex\").\r\n\r\n## Checklist\r\n\r\nMy suggestion meets these guidelines:\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. new expression-level syntax)\r\n\r\n","author":{"url":"https://github.com/greyepoxy","@type":"Person","name":"greyepoxy"},"datePublished":"2018-07-10T23:27:12Z","url":"https://github.com/microsoft/TypeScript/issues/25567"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:39198073-9ec5-854a-d97b-389f181ffed5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBF7E:3CBAFA:7CC5CC:AE23DB:6B048BFA
html-safe-noncea559092cee2dd386123b22fa0257fbee06dc6d5a7439655af2b33adb51bef826
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjdFOjNDQkFGQTo3Q0M1Q0M6QUUyM0RCOjZCMDQ4QkZBIiwidmlzaXRvcl9pZCI6Ijc5OTQ1MTE1MjIyMjU0OTA5MzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca8ac8430dc9942842dccd93baa5ad2eb9a597b37ee68f78c1b5808c2ca16da63
hovercard-subject-tagissue:340040673
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/25567/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d20a05b49067c56b00ab48cec9e8cca11cc5ed0af1e2db7f67d839953bfcf409/microsoft/TypeScript/issues/25567
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d20a05b49067c56b00ab48cec9e8cca11cc5ed0af1e2db7f67d839953bfcf409/microsoft/TypeScript/issues/25567
og:image:altSearch Terms lib, polyfill Suggestion Split the existing lib .d.ts files into smaller feature segments so each feature can be included selectively as desired. Use Cases I work at a company with a l...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegreyepoxy
hostnamegithub.com
expected-hostnamegithub.com
None9b297275a74a2c9a35898175c9477837c635d4f579277ebff3b2d6ebd012e247
turbo-cache-controlno-preview
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseb51ce57ca6d4565a42856fc1c9897077c794597f
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/25567#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F25567
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F25567
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/25567
Reloadhttps://github.com/microsoft/TypeScript/issues/25567
Reloadhttps://github.com/microsoft/TypeScript/issues/25567
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests317 (317)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/insights
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/25567
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/25567
Better compile time polyfill support by splitting lib .d.ts files into smallest segments possiblehttps://github.com/microsoft/TypeScript/issues/25567#top
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
Too ComplexAn issue which adding support for may be too complex for the value it addshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Too%20Complex%22
https://github.com/greyepoxy
Justin (greyepoxy)https://github.com/greyepoxy
on Jul 10, 2018https://github.com/microsoft/TypeScript/issues/25567#issue-340040673
core-jshttps://github.com/zloirock/core-js
https://github.com/kitsonk
Kitson Kelly (kitsonk)https://github.com/kitsonk
on Jul 11, 2018https://github.com/microsoft/TypeScript/issues/25567#issuecomment-404035379
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Jul 11, 2018https://github.com/microsoft/TypeScript/issues/25567#issuecomment-404055300
https://github.com/greyepoxy
Justin (greyepoxy)https://github.com/greyepoxy
on Jul 11, 2018https://github.com/microsoft/TypeScript/issues/25567#issuecomment-404279615
Mohamed Hegazy (@mhegazy)https://github.com/mhegazy
https://github.com/Microsoft/TypeScript/blob/master/src/lib/es2015.iterable.d.ts#L16https://github.com/Microsoft/TypeScript/blob/master/src/lib/es2015.iterable.d.ts#L16
https://github.com/Microsoft/TypeScript/blob/master/src/lib/es2015.iterable.d.ts#L50https://github.com/Microsoft/TypeScript/blob/master/src/lib/es2015.iterable.d.ts#L50
https://github.com/Microsoft/TypeScript/blob/master/src/lib/es2015.core.d.ts#L47https://github.com/Microsoft/TypeScript/blob/master/src/lib/es2015.core.d.ts#L47
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Jul 11, 2018https://github.com/microsoft/TypeScript/issues/25567#issuecomment-404292999
https://github.com/craigkovatch
Craig Kovatch (craigkovatch)https://github.com/craigkovatch
on Jul 11, 2018https://github.com/microsoft/TypeScript/issues/25567#issuecomment-404294960
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featurehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Awaiting%20More%20Feedback%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
on Jul 11, 2018https://github.com/microsoft/TypeScript/issues/25567#event-1728857819
https://github.com/greyepoxy
Justin (greyepoxy)https://github.com/greyepoxy
on Jul 11, 2018https://github.com/microsoft/TypeScript/issues/25567#issuecomment-404305335
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
https://github.com/kitsonk
Kitson Kelly (kitsonk)https://github.com/kitsonk
on Jul 12, 2018https://github.com/microsoft/TypeScript/issues/25567#issuecomment-404378600
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Too ComplexAn issue which adding support for may be too complex for the value it addshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Too%20Complex%22
Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featurehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Awaiting%20More%20Feedback%22
on Jun 25, 2021https://github.com/microsoft/TypeScript/issues/25567#event-4941991876
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Jun 25, 2021https://github.com/microsoft/TypeScript/issues/25567#issuecomment-868835592
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 25, 2021https://github.com/microsoft/TypeScript/issues/25567#event-4941995419
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/25567
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/25567
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
Too ComplexAn issue which adding support for may be too complex for the value it addshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Too%20Complex%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.