René's URL Explorer Experiment


Title: Support importing json files as modules with commonjs or node module resolution by sheetalkamat · Pull Request #13665 · microsoft/TypeScript · GitHub

Open Graph Title: Support importing json files as modules with commonjs or node module resolution by sheetalkamat · Pull Request #13665 · microsoft/TypeScript

X Title: Support importing json files as modules with commonjs or node module resolution by sheetalkamat · Pull Request #13665 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Support importing json files as modules with commonjs or node module resolution by sheetalkamat · Pull Request #13665 · microsoft/TypeScript

Open Graph Description: This PR is on top of #12336 to add support for json files lookup and use as a module. Fixes #7071 This supports resolving module with json file extension when using node resolution Open things: [...

X Description: This PR is on top of #12336 to add support for json files lookup and use as a module. Fixes #7071 This supports resolving module with json file extension when using node resolution Open things: [...

Opengraph URL: https://github.com/microsoft/TypeScript/pull/13665

X: @github

direct link

Domain: github.com

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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:55392a0b-d4c1-0b46-ae65-bea06b69a1c5
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBC00:1D86C4:293DA4E:3463584:6B01A28E
html-safe-nonce8047e8b935c4588c7f6af96b3b0330635d79c29fb67bff8632e7f2d9e2ef6a31
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzAwOjFEODZDNDoyOTNEQTRFOjM0NjM1ODQ6NkIwMUEyOEUiLCJ2aXNpdG9yX2lkIjoiNzIyNjA2ODUxNDkyOTQ4NDQzMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac41a63e81bbc4b2afd0fe0acf85955cca6b3a607cde4c45394df68ea432218d4b
hovercard-subject-tagpull_request:103025536
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/microsoft/TypeScript/13665/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/91ec303967305743871b1a94dccd0fae2502bd9d10d4abe6c58decc6230b97d3/microsoft/TypeScript/pull/13665
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/91ec303967305743871b1a94dccd0fae2502bd9d10d4abe6c58decc6230b97d3/microsoft/TypeScript/pull/13665
og:image:altThis PR is on top of #12336 to add support for json files lookup and use as a module. Fixes #7071 This supports resolving module with json file extension when using node resolution Open things: [...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesheetalkamat
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-cache
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/13665#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F13665
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%2Fpull%2F13665
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/pull/13665
Reloadhttps://github.com/microsoft/TypeScript/pull/13665
Reloadhttps://github.com/microsoft/TypeScript/pull/13665
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests312 (312)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
Sheetal Nandi (sheetalkamat)https://github.com/sheetalkamat
masterhttps://github.com/microsoft/TypeScript/tree/master
supportJsonFileModulehttps://github.com/microsoft/TypeScript/tree/supportJsonFileModule
Conversationhttps://github.com/microsoft/TypeScript/pull/13665
Commits11 (11)https://github.com/microsoft/TypeScript/pull/13665/commits
Checkshttps://github.com/microsoft/TypeScript/pull/13665/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/13665/files
Support importing json files as modules with commonjs or node module resolutionhttps://github.com/microsoft/TypeScript/pull/13665#top
Sheetal Nandi (sheetalkamat)https://github.com/sheetalkamat
masterhttps://github.com/microsoft/TypeScript/tree/master
supportJsonFileModulehttps://github.com/microsoft/TypeScript/tree/supportJsonFileModule
https://github.com/sheetalkamat
Sheetal Nandi (sheetalkamat)https://github.com/sheetalkamat
Jan 24, 2017https://github.com/microsoft/TypeScript/pull/13665#issue-202970057
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/13665
#12336https://github.com/microsoft/TypeScript/pull/12336
#7071https://github.com/microsoft/TypeScript/issues/7071
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/13665
Sheetal Nandi (sheetalkamat)https://github.com/sheetalkamat
January 24, 2017 15:11https://github.com/microsoft/TypeScript/pull/13665#commits-pushed-8f8ed2c
https://github.com/sheetalkamat
Resolve Json file when module resolution strategy is nodehttps://github.com/microsoft/TypeScript/pull/13665/commits/8f8ed2c2e111cd16212c4f5785293ed933ac1741
8f8ed2chttps://github.com/microsoft/TypeScript/pull/13665/commits/8f8ed2c2e111cd16212c4f5785293ed933ac1741
https://github.com/sheetalkamat
Bind and resolve the module for json filehttps://github.com/microsoft/TypeScript/pull/13665/commits/10560af6f5d36d214d4b30bdcb4e5322f11ffb53
10560afhttps://github.com/microsoft/TypeScript/pull/13665/commits/10560af6f5d36d214d4b30bdcb4e5322f11ffb53
https://github.com/sheetalkamat
Emit the symbol information for declaration names (could be string li…https://github.com/microsoft/TypeScript/pull/13665/commits/1f349221fb291baf2c60ad5a43e25befaab1fecd
1f34922https://github.com/microsoft/TypeScript/pull/13665/commits/1f349221fb291baf2c60ad5a43e25befaab1fecd
https://github.com/sheetalkamat
Fix emit for json filehttps://github.com/microsoft/TypeScript/pull/13665/commits/f1fae6a9422c6f07507a495b34c000a06dd2887c
f1fae6ahttps://github.com/microsoft/TypeScript/pull/13665/commits/f1fae6a9422c6f07507a495b34c000a06dd2887c
https://github.com/sheetalkamat
More testshttps://github.com/microsoft/TypeScript/pull/13665/commits/4ebf2d96744654a6dcff98db39442e7b268dad50
4ebf2d9https://github.com/microsoft/TypeScript/pull/13665/commits/4ebf2d96744654a6dcff98db39442e7b268dad50
https://github.com/msftclas
Microsoft Contribution License Agreements (msftclas)https://github.com/msftclas
cla-not-required https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3Acla-not-required
Jan 24, 2017https://github.com/microsoft/TypeScript/pull/13665#event-935373496
https://github.com/sheetalkamat
Sheetal Nandi (sheetalkamat)https://github.com/sheetalkamat
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
Vladimir Matveev (vladima)https://github.com/vladima
January 24, 2017 23:29https://github.com/microsoft/TypeScript/pull/13665#event-935380650
https://github.com/mightyiam
Shahar "Dawn" Or (mightyiam)https://github.com/mightyiam
Mar 3, 2017https://github.com/microsoft/TypeScript/pull/13665#issuecomment-284027668
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/13665
Sheetal Nandi (sheetalkamat)https://github.com/sheetalkamat
April 18, 2017 09:46https://github.com/microsoft/TypeScript/pull/13665#commits-pushed-b52e45d
https://github.com/sheetalkamat
Merge branch 'ownJsonParsing' into supportJsonFileModulehttps://github.com/microsoft/TypeScript/pull/13665/commits/b52e45d6bcf9785125915e529272c17bd094dc1f
b52e45dhttps://github.com/microsoft/TypeScript/pull/13665/commits/b52e45d6bcf9785125915e529272c17bd094dc1f
https://github.com/sheetalkamat
Merge branch 'ownJsonParsing' into supportJsonFileModulehttps://github.com/microsoft/TypeScript/pull/13665/commits/c8e31e440ab196c6457a3824cb0d7cb03e3490da
c8e31e4https://github.com/microsoft/TypeScript/pull/13665/commits/c8e31e440ab196c6457a3824cb0d7cb03e3490da
https://github.com/sheetalkamat
Merge branch 'ownJsonParsing' into supportJsonFileModulehttps://github.com/microsoft/TypeScript/pull/13665/commits/20d79f3bc6621c5bf7e36f215875eb3193b3b689
20d79f3https://github.com/microsoft/TypeScript/pull/13665/commits/20d79f3bc6621c5bf7e36f215875eb3193b3b689
require('file.json') in JS causes error TS2307. #15987 https://github.com/microsoft/TypeScript/issues/15987
Completion list for JSON files imported using CommonJS require #9221 https://github.com/microsoft/TypeScript/pull/9221
https://github.com/sheetalkamat
Merge branch 'master' into supportJsonFileModulehttps://github.com/microsoft/TypeScript/pull/13665/commits/50bc3dd07b225de047b83ed08ae2579c1812a345
50bc3ddhttps://github.com/microsoft/TypeScript/pull/13665/commits/50bc3dd07b225de047b83ed08ae2579c1812a345
https://github.com/sheetalkamat
Sheetal Nandi (sheetalkamat)https://github.com/sheetalkamat
September 14, 2017 21:13https://github.com/microsoft/TypeScript/pull/13665#event-1250037135
Sheetal Nandi (sheetalkamat)https://github.com/sheetalkamat
September 14, 2017 14:25https://github.com/microsoft/TypeScript/pull/13665#commits-pushed-2b06729
https://github.com/sheetalkamat
Merge branch 'master' into supportJsonFileModulehttps://github.com/microsoft/TypeScript/pull/13665/commits/2b0672939719451603b98624f2885083b61e1014
2b06729https://github.com/microsoft/TypeScript/pull/13665/commits/2b0672939719451603b98624f2885083b61e1014
https://github.com/sheetalkamat
Remove unnecessary functionhttps://github.com/microsoft/TypeScript/pull/13665/commits/d243eb0107110d4fa172504978031063b99f85de
d243eb0https://github.com/microsoft/TypeScript/pull/13665/commits/d243eb0107110d4fa172504978031063b99f85de
https://github.com/msftgits
Microsoft GitHub User (msftgits)https://github.com/msftgits
cla-not-required https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3Acla-not-required
Sep 26, 2017https://github.com/microsoft/TypeScript/pull/13665#event-1265655630
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
Jan 18, 2018 https://github.com/microsoft/TypeScript/pull/13665#ref-issue-289566290
@ts-check complains about a require of a JSON file. #21262 https://github.com/microsoft/TypeScript/issues/21262
https://github.com/sheetalkamat
Sheetal Nandi (sheetalkamat)https://github.com/sheetalkamat
Feb 24, 2018https://github.com/microsoft/TypeScript/pull/13665#issuecomment-368248443
#22167https://github.com/microsoft/TypeScript/pull/22167
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/13665
https://github.com/sheetalkamat
Sheetal Nandi (sheetalkamat)https://github.com/sheetalkamat
Feb 24, 2018https://github.com/microsoft/TypeScript/pull/13665#event-1490526456
https://github.com/sheetalkamat
Sheetal Nandi (sheetalkamat)https://github.com/sheetalkamat
February 24, 2018 18:22https://github.com/microsoft/TypeScript/pull/13665#event-1490526503
https://github.com/microsoft
Microsoft (microsoft)https://github.com/microsoft
Jul 3, 2018https://github.com/microsoft/TypeScript/pull/13665#event-1712799811
https://github.co/hiddenchars
https://github.com/microsoft/TypeScript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F13665
https://github.com/mhegazy
Mohamed Hegazy (mhegazy) https://github.com/mhegazy
https://github.com/vladima
Vladimir Matveev (vladima) https://github.com/vladima
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/13665
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/13665
https://github.com/sheetalkamat
https://github.com/mightyiam
https://github.com/msftclas
https://github.com/msftgits
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

Viewport: width=device-width


URLs of crawlers that visited me.