René's URL Explorer Experiment


Title: [ts-beta 5.5] Function declarations are not exported when targeting commonJS - js emit regression · Issue #58699 · microsoft/TypeScript · GitHub

Open Graph Title: [ts-beta 5.5] Function declarations are not exported when targeting commonJS - js emit regression · Issue #58699 · microsoft/TypeScript

X Title: [ts-beta 5.5] Function declarations are not exported when targeting commonJS - js emit regression · Issue #58699 · microsoft/TypeScript

Description: 🔎 Search Terms JavaScript emit commonjs 🕗 Version & Regression Information This changed between versions 5.4 and 5.5beta ⏯ Playground Link Playground Link 💻 Code function getProgram(source: string) {} export { getProgram } 🙁 Actual behav...

Open Graph Description: 🔎 Search Terms JavaScript emit commonjs 🕗 Version & Regression Information This changed between versions 5.4 and 5.5beta ⏯ Playground Link Playground Link 💻 Code function getProgram(source: string)...

X Description: 🔎 Search Terms JavaScript emit commonjs 🕗 Version & Regression Information This changed between versions 5.4 and 5.5beta ⏯ Playground Link Playground Link 💻 Code function getProgram(source: str...

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

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":"[ts-beta 5.5] Function declarations are not exported when targeting commonJS - js emit regression ","articleBody":"### 🔎 Search Terms\r\n\r\nJavaScript emit commonjs\r\n\r\n### 🕗 Version & Regression Information\r\n\r\n- This changed between versions 5.4 and 5.5beta\r\n\r\n\r\n### ⏯ Playground Link\r\n\r\n[Playground Link](https://www.typescriptlang.org/play/?moduleResolution=99&target=99&module=1&ts=5.5.0-dev.20240528#code/GYVwdgxgLglg9mABAcwKZQAoCc7KwQwFsAKAZzhCwlQC5FSosYxkBKRAbwF8AoVADwAOcLFE4p02XAUIAaRAGFEXIA)\r\n\r\n### 💻 Code\r\n\r\n```ts\r\nfunction getProgram(source: string) {}\r\nexport { getProgram }\r\n```\r\n\r\n\r\n### 🙁 Actual behavior\r\n\r\nThe following js is generated:\r\n\r\n```js\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.getProgram = void 0;\r\nfunction getProgram(source) { }\r\n```\r\n\r\nThis does not actually add the function to the export. So when importing `getProgram` it will be undefined.\r\n\r\n### 🙂 Expected behavior\r\n\r\nEmit should be the same as 5.4 where the function is actually exported:\r\n\r\n```js\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.getProgram = void 0;\r\nfunction getProgram(source) { }\r\nexports.getProgram = getProgram;\r\n```\r\n\r\n### Additional information about the issue\r\n\r\nThis seems to affect only function declarations. Variables, classes seem to be exported correctly.","author":{"url":"https://github.com/dragomirtitian","@type":"Person","name":"dragomirtitian"},"datePublished":"2024-05-29T16:52:57Z","url":"https://github.com/microsoft/TypeScript/issues/58699"}

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:539cde9f-02da-326c-b64e-f2728ebc6a1d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9D8A:199A0D:34F9E9B:45D0F54:6B0588CD
html-safe-nonce8f8e4b7122bf05b076f0d7b7608876395162bf950f654427b93c4c0e080db94f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDhBOjE5OUEwRDozNEY5RTlCOjQ1RDBGNTQ6NkIwNTg4Q0QiLCJ2aXNpdG9yX2lkIjoiODUyNzcxMzUyMjgzNzQ1NzEwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac5864dc0effa90fea343aaabbce32fbc59f67f4b4c78f5a9cfe6b70c1238b51ba
hovercard-subject-tagissue:2323788727
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/58699/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3486963561c23bda86851a5548090912ba9d9bf587f723a3c4c22921dad426b3/microsoft/TypeScript/issues/58699
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3486963561c23bda86851a5548090912ba9d9bf587f723a3c4c22921dad426b3/microsoft/TypeScript/issues/58699
og:image:alt🔎 Search Terms JavaScript emit commonjs 🕗 Version & Regression Information This changed between versions 5.4 and 5.5beta ⏯ Playground Link Playground Link 💻 Code function getProgram(source: string)...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedragomirtitian
hostnamegithub.com
expected-hostnamegithub.com
None9b4256ac5f3e310e7945ef5b71c9cb9e264357b1eb20e91d369ed6502a4c486c
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
releasef089e689ad324655ac44bf6cdbc04d976105b374
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/58699#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F58699
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%2F58699
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/58699
Reloadhttps://github.com/microsoft/TypeScript/issues/58699
Reloadhttps://github.com/microsoft/TypeScript/issues/58699
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests321 (321)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/58699
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/58699
[ts-beta 5.5] Function declarations are not exported when targeting commonJS - js emit regression https://github.com/microsoft/TypeScript/issues/58699#top
https://github.com/dragomirtitian
Titian Cernicova-Dragomir (dragomirtitian)https://github.com/dragomirtitian
on May 29, 2024https://github.com/microsoft/TypeScript/issues/58699#issue-2323788727
Playground Linkhttps://www.typescriptlang.org/play/?moduleResolution=99&target=99&module=1&ts=5.5.0-dev.20240528#code/GYVwdgxgLglg9mABAcwKZQAoCc7KwQwFsAKAZzhCwlQC5FSosYxkBKRAbwF8AoVADwAOcLFE4p02XAUIAaRAGFEXIA
Titian Cernicova-Dragomir (dragomirtitian)https://github.com/dragomirtitian
on May 29, 2024https://github.com/microsoft/TypeScript/issues/58699#event-12974802416
https://github.com/Andarist
Mateusz Burzyński (Andarist)https://github.com/Andarist
on May 29, 2024https://github.com/microsoft/TypeScript/issues/58699#issuecomment-2137924186
#58489https://github.com/microsoft/TypeScript/pull/58489
Jake Bailey (@jakebailey)https://github.com/jakebailey
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on May 29, 2024https://github.com/microsoft/TypeScript/issues/58699#issuecomment-2137945831
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on May 29, 2024https://github.com/microsoft/TypeScript/issues/58699#issuecomment-2137988918
https://github.com/Andarist
Mateusz Burzyński (Andarist)https://github.com/Andarist
on May 29, 2024https://github.com/microsoft/TypeScript/issues/58699#issuecomment-2138086979
TS playgroundhttps://www.typescriptlang.org/play/?moduleResolution=99&target=99&module=1&ts=5.5.0-dev.20240529#code/GYVwdgxgLglg9mABAcwKZQAoCc7KwQwFsAKAZzhCwlQC5FSosYxkBKRAbwF8AoVADwAOcLFE4p02XAUKIuQA
Jake Bailey (jakebailey)https://github.com/jakebailey
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 29, 2024https://github.com/microsoft/TypeScript/issues/58699#event-12976211210
microsofthttps://github.com/microsoft
on Oct 22, 2025https://github.com/microsoft/TypeScript/issues/58699#event-20419662386
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/58699
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/58699
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.