René's URL Explorer Experiment


Title: `ts` object has no properties when loading typescript.js in a browser with v5.5-rc · Issue #58893 · microsoft/TypeScript · GitHub

Open Graph Title: `ts` object has no properties when loading typescript.js in a browser with v5.5-rc · Issue #58893 · microsoft/TypeScript

X Title: `ts` object has no properties when loading typescript.js in a browser with v5.5-rc · Issue #58893 · microsoft/TypeScript

Description: Acknowledgement I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion. Comment This came up after sending the initial Google v5.5-beta feedback in #58685 since I was just l...

Open Graph Description: Acknowledgement I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion. Comment This came up after sending the initial Google v5.5-be...

X Description: Acknowledgement I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion. Comment This came up after sending the initial Google v5....

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`ts` object has no properties when loading typescript.js in a browser with v5.5-rc","articleBody":"### Acknowledgement\n\n- [X] I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion.\n\n### Comment\n\nThis came up after sending the initial Google v5.5-beta feedback in https://github.com/Microsoft/TypeScript/issues/58685 since I was just looking at build failures for that feedback.\r\n\r\nApologies if this isn't an officially supported way of using the TypeScript compiler or not - most of the docs I can find are specific to running the compiler via Node.\r\n\r\nGoogle has some internal web apps that load the bundled TSC from https://github.com/microsoft/TypeScript/blob/v5.5-rc/lib/typescript.js file in a browser. One example use case is a tool similar to https://www.typescriptlang.org/play/.\r\n\r\nIn TS 5.5 these apps break at runtime because they call methods on the global `ts` object like `ts.createLanguageService`, but `ts` is now just an empty object with no properties. I narrowed this down to the bundling changes in https://github.com/microsoft/TypeScript/pull/57133. Here's typescript.js before & after:\r\n\r\n[v5.4.2](https://raw.githubusercontent.com/microsoft/TypeScript/v5.4.2/lib/typescript.js):\r\n\r\n``` js\r\nvar ts = (() => {\r\n  // lots and lots of code\r\n  return require_typescript();\r\n})();\r\n\r\nif (typeof module !== \"undefined\" && module.exports) { module.exports = ts; }\r\n```\r\n\r\n[v5.5-rc](https://raw.githubusercontent.com/microsoft/TypeScript/v5.5-rc/lib/typescript.js):\r\n\r\n``` js\r\nvar ts = {}; ((module) => {\r\n// lots and lots of code\r\nmodule.exports = __toCommonJS(typescript_exports);\r\n// even more code\r\n})(typeof module !== \"undefined\" && module.exports ? module : { exports: ts });\r\nif (typeof module !== \"undefined\" && module.exports) { ts = module.exports; }\r\n```\r\n\r\nI'd assume that in v5.5-rc, `ts` was intended to be instantiated via passing `{exports : ts }` as the `module` argument to this IIFE, causing the exported functions that are put on `module.exports` to also be defined as properties on `ts`. Instead the `module.exports = __toCommonJS(typescript_exports);` assignment just overwrites `ts` in `{exports: ts}` and `ts` is just an empty object.","author":{"url":"https://github.com/lauraharker","@type":"Person","name":"lauraharker"},"datePublished":"2024-06-17T18:28:21Z","url":"https://github.com/microsoft/TypeScript/issues/58893"}

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:f7561738-22d0-9525-73d3-f971ab1f64e2
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id88DC:2ACC63:1146D7B:1692A75:6B04F693
html-safe-noncedce0ed8d81a0ecf68c079f653131d25f816288b08cc0a62aad689fa2eb89d244
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OERDOjJBQ0M2MzoxMTQ2RDdCOjE2OTJBNzU6NkIwNEY2OTMiLCJ2aXNpdG9yX2lkIjoiMTEzOTU2MTI4MDQ4MzY4NjAzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac872d4ca940fad2c1e74ce9a319f46bece764c3b8336711a3cdf7653218a1655a
hovercard-subject-tagissue:2357971539
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/58893/issue_layout
twitter:imagehttps://opengraph.githubassets.com/dd0f88116798b687ba474918adf8bec96ea63f213c573483908d9cb6676a7554/microsoft/TypeScript/issues/58893
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/dd0f88116798b687ba474918adf8bec96ea63f213c573483908d9cb6676a7554/microsoft/TypeScript/issues/58893
og:image:altAcknowledgement I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion. Comment This came up after sending the initial Google v5.5-be...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelauraharker
hostnamegithub.com
expected-hostnamegithub.com
None2c3971d6ab4be607cf9a26ac26ef0a7bfce380ec2ba14642e64028ad07a492b9
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
releaseb3f1d45dee14b3f87c64e9017a9c08d011561786
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/58893#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F58893
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%2F58893
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/58893
Reloadhttps://github.com/microsoft/TypeScript/issues/58893
Reloadhttps://github.com/microsoft/TypeScript/issues/58893
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests319 (319)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/58893
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/58893
#58895https://github.com/microsoft/TypeScript/pull/58895
ts object has no properties when loading typescript.js in a browser with v5.5-rchttps://github.com/microsoft/TypeScript/issues/58893#top
#58895https://github.com/microsoft/TypeScript/pull/58895
https://github.com/jakebailey
Needs Investigationhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
https://github.com/lauraharker
Laura Harker (lauraharker)https://github.com/lauraharker
on Jun 17, 2024https://github.com/microsoft/TypeScript/issues/58893#issue-2357971539
#58685https://github.com/microsoft/TypeScript/issues/58685
https://github.com/microsoft/TypeScript/blob/v5.5-rc/lib/typescript.jshttps://github.com/microsoft/TypeScript/blob/v5.5-rc/lib/typescript.js
https://www.typescriptlang.org/play/https://www.typescriptlang.org/play/
#57133https://github.com/microsoft/TypeScript/pull/57133
v5.4.2https://raw.githubusercontent.com/microsoft/TypeScript/v5.4.2/lib/typescript.js
v5.5-rchttps://raw.githubusercontent.com/microsoft/TypeScript/v5.5-rc/lib/typescript.js
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Jake Bailey (jakebailey)https://github.com/jakebailey
on Jun 17, 2024https://github.com/microsoft/TypeScript/issues/58893#event-13190012452
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Needs Investigationhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
on Jun 17, 2024https://github.com/microsoft/TypeScript/issues/58893#event-13190014040
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Jun 17, 2024https://github.com/microsoft/TypeScript/issues/58893#issuecomment-2174168128
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Jun 17, 2024https://github.com/microsoft/TypeScript/issues/58893#issuecomment-2174210293
#58419https://github.com/microsoft/TypeScript/pull/58419
https://github.com/lauraharker
Laura Harker (lauraharker)https://github.com/lauraharker
on Jun 17, 2024https://github.com/microsoft/TypeScript/issues/58893#issuecomment-2174221597
Jake Bailey (@jakebailey)https://github.com/jakebailey
https://github.com/fatcerberus
Bruce Pascoe (fatcerberus)https://github.com/fatcerberus
on Jun 17, 2024https://github.com/microsoft/TypeScript/issues/58893#issuecomment-2174238756
Buyzed Hossain Akash (@hossain666)https://github.com/hossain666
Jake Bailey (jakebailey)https://github.com/jakebailey
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#58895https://github.com/microsoft/TypeScript/pull/58895
on Jun 17, 2024https://github.com/microsoft/TypeScript/issues/58893#event-13191684646
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/58893
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/58893
Jake Bailey (jakebailey)https://github.com/jakebailey
Needs Investigationhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%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.