René's URL Explorer Experiment


Title: Proposal for dual ESM/CommonJS packages · Issue #273 · nodejs/modules · GitHub

Open Graph Title: Proposal for dual ESM/CommonJS packages · Issue #273 · nodejs/modules

X Title: Proposal for dual ESM/CommonJS packages · Issue #273 · nodejs/modules

Description: @guybedford, @jkrems and I discussed the package dual-ESM/CommonJS case and we have a small proposal, based on the current ecmascript-modules implementation: The package.json "main" field reverts to its prior CommonJS-only use. A new fie...

Open Graph Description: @guybedford, @jkrems and I discussed the package dual-ESM/CommonJS case and we have a small proposal, based on the current ecmascript-modules implementation: The package.json "main" field reverts t...

X Description: @guybedford, @jkrems and I discussed the package dual-ESM/CommonJS case and we have a small proposal, based on the current ecmascript-modules implementation: The package.json "main" field...

Opengraph URL: https://github.com/nodejs/modules/issues/273

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Proposal for dual ESM/CommonJS packages","articleBody":"@guybedford, @jkrems and I discussed the package dual-ESM/CommonJS case and we have a small proposal, based on the current [ecmascript-modules implementation](https://github.com/nodejs/ecmascript-modules):\r\n\r\n- The `package.json` `\"main\"` field reverts to its prior CommonJS-only use.\r\n\r\n- A new field `\"exports\"` is created that takes a string like `\"./src/index.js\"`. This is the ES module entry point. `\"exports\"` is to `import` what `\"main\"` is to `require`.\r\n\r\nNotes:\r\n\r\n- `\"exports\"` may in the future take an object, preserving design space for the [package exports proposal](https://github.com/jkrems/proposal-pkg-exports).\r\n\r\n- If `\"exports\"` points to a `.js` file and `\"type\": \"module\"` is not set, an error is thrown similar to the “type mismatch” errors (like using `--type=commonjs` with an `.mjs` file). The error would also instruct the user to add `\"type\": \"module\"` to `package.json`. The `\"exports\"` field does not imply `\"type\": \"module\"`.\r\n\r\nAnd that’s it! This should cover the case while preserving design space for future proposals, and for Node potentially switching to ESM by default someday.","author":{"url":"https://github.com/GeoffreyBooth","@type":"Person","name":"GeoffreyBooth"},"datePublished":"2019-02-25T21:58:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":87},"url":"https://github.com/273/modules/issues/273"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8ead978f-d102-9f91-b33d-768641f679d2
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC39A:204C81:8DE38E:BE475D:6A4D6F1A
html-safe-nonce12225d626551905617835fe5babd2e5a99a08c06da201206d47df4b75cf67c69
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzlBOjIwNEM4MTo4REUzOEU6QkU0NzVEOjZBNEQ2RjFBIiwidmlzaXRvcl9pZCI6IjE3MDY5MTQxMzgwMTIwODYwNDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac850908b7904ad0ac745c76eb402491e411cffdcb61fc0366d7b7e0b3b59aad99
hovercard-subject-tagissue:414326880
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/nodejs/modules/273/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2a427942d6f50c1cacda8a7ad82e652ac5aafa1037803ee990fbc4551d10c627/nodejs/modules/issues/273
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2a427942d6f50c1cacda8a7ad82e652ac5aafa1037803ee990fbc4551d10c627/nodejs/modules/issues/273
og:image:alt@guybedford, @jkrems and I discussed the package dual-ESM/CommonJS case and we have a small proposal, based on the current ecmascript-modules implementation: The package.json "main" field reverts t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameGeoffreyBooth
hostnamegithub.com
expected-hostnamegithub.com
Nonec78260c7b3f4ac4b0356c8208537f05406a3a2d46a9ec3f735b372dcc519c39e
turbo-cache-controlno-preview
go-importgithub.com/nodejs/modules git https://github.com/nodejs/modules.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id119901830
octolytics-dimension-repository_nwonodejs/modules
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id119901830
octolytics-dimension-repository_network_root_nwonodejs/modules
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
release399fff412f48461d435721c009efc17ea44be72f
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodejs/modules/issues/273#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fmodules%2Fissues%2F273
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fmodules%2Fissues%2F273
Sign up https://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=nodejs%2Fmodules
Reloadhttps://github.com/nodejs/modules/issues/273
Reloadhttps://github.com/nodejs/modules/issues/273
Reloadhttps://github.com/nodejs/modules/issues/273
Please reload this pagehttps://github.com/nodejs/modules/issues/273
nodejs https://github.com/nodejs
moduleshttps://github.com/nodejs/modules
Notifications https://github.com/login?return_to=%2Fnodejs%2Fmodules
Fork 43 https://github.com/login?return_to=%2Fnodejs%2Fmodules
Star 411 https://github.com/login?return_to=%2Fnodejs%2Fmodules
Code https://github.com/nodejs/modules
Issues 26 https://github.com/nodejs/modules/issues
Pull requests 0 https://github.com/nodejs/modules/pulls
Actions https://github.com/nodejs/modules/actions
Projects https://github.com/nodejs/modules/projects
Security and quality 0 https://github.com/nodejs/modules/security
Insights https://github.com/nodejs/modules/pulse
Code https://github.com/nodejs/modules
Issues https://github.com/nodejs/modules/issues
Pull requests https://github.com/nodejs/modules/pulls
Actions https://github.com/nodejs/modules/actions
Projects https://github.com/nodejs/modules/projects
Security and quality https://github.com/nodejs/modules/security
Insights https://github.com/nodejs/modules/pulse
Proposal for dual ESM/CommonJS packageshttps://github.com/nodejs/modules/issues/273#top
cjshttps://github.com/nodejs/modules/issues?q=state%3Aopen%20label%3A%22cjs%22
esmhttps://github.com/nodejs/modules/issues?q=state%3Aopen%20label%3A%22esm%22
proposalhttps://github.com/nodejs/modules/issues?q=state%3Aopen%20label%3A%22proposal%22
https://github.com/GeoffreyBooth
GeoffreyBoothhttps://github.com/GeoffreyBooth
on Feb 25, 2019https://github.com/nodejs/modules/issues/273#issue-414326880
@guybedfordhttps://github.com/guybedford
ecmascript-modules implementationhttps://github.com/nodejs/ecmascript-modules
package exports proposalhttps://github.com/jkrems/proposal-pkg-exports
cjshttps://github.com/nodejs/modules/issues?q=state%3Aopen%20label%3A%22cjs%22
esmhttps://github.com/nodejs/modules/issues?q=state%3Aopen%20label%3A%22esm%22
proposalhttps://github.com/nodejs/modules/issues?q=state%3Aopen%20label%3A%22proposal%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

Viewport: width=device-width


URLs of crawlers that visited me.