René's URL Explorer Experiment


Title: fix(cjs): Use `module` instead of `require` for CJS check by s1gr1d · Pull Request #15927 · getsentry/sentry-javascript · GitHub

Open Graph Title: fix(cjs): Use `module` instead of `require` for CJS check by s1gr1d · Pull Request #15927 · getsentry/sentry-javascript

X Title: fix(cjs): Use `module` instead of `require` for CJS check by s1gr1d · Pull Request #15927 · getsentry/sentry-javascript

Description: Official Sentry SDKs for JavaScript. Contribute to getsentry/sentry-javascript development by creating an account on GitHub.

Open Graph Description: As require is supported in ESM as well from Node 20.19.0 onwards, the check does not work anymore. However, module is not available in ESM. Also mentioned in this comment: #14202 (comment) Node: Co...

X Description: As require is supported in ESM as well from Node 20.19.0 onwards, the check does not work anymore. However, module is not available in ESM. Also mentioned in this comment: #14202 (comment) Node: Co...

Opengraph URL: https://github.com/getsentry/sentry-javascript/pull/15927

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3

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:e955653d-e482-94a4-2611-f5e97375aff3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE510:18B9C0:61A4:84E2:6B075433
html-safe-nonce4da11d5a508b873b740dd6ff114badc38dcf423f186dedebce5e688546eebd86
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTEwOjE4QjlDMDo2MUE0Ojg0RTI6NkIwNzU0MzMiLCJ2aXNpdG9yX2lkIjoiMzM2Njk4MjQ4MTgzOTg3MTAyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacc077658c31425dfba40ee6f480e830e588d35de51a99d9aa6edfa7313ba78edc
hovercard-subject-tagpull_request:2428279681
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/getsentry/sentry-javascript/15927/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/482efd69e9745e3244bc5ac49e8e46fd01e157a18165915e8bebf39cf6a63a82/getsentry/sentry-javascript/pull/15927
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/482efd69e9745e3244bc5ac49e8e46fd01e157a18165915e8bebf39cf6a63a82/getsentry/sentry-javascript/pull/15927
og:image:altAs require is supported in ESM as well from Node 20.19.0 onwards, the check does not work anymore. However, module is not available in ESM. Also mentioned in this comment: #14202 (comment) Node: Co...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernames1gr1d
hostnamegithub.com
expected-hostnamegithub.com
None663b1a69a41309856ffd9403fa5b764f6c0f78a39a0a8f75fb2c205c96a947be
turbo-cache-controlno-cache
go-importgithub.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3328572
octolytics-dimension-repository_nwogetsentry/sentry-javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3328572
octolytics-dimension-repository_network_root_nwogetsentry/sentry-javascript
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
releaseeffa2c0a160a75bd95d9ffcc6320197d7aea0d83
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/pull/15927#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F15927
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%2Fgetsentry%2Fsentry-javascript%2Fpull%2F15927
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=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/pull/15927
Reloadhttps://github.com/getsentry/sentry-javascript/pull/15927
Reloadhttps://github.com/getsentry/sentry-javascript/pull/15927
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues335 (335)https://github.com/getsentry/sentry-javascript/issues
Pull requests58 (58)https://github.com/getsentry/sentry-javascript/pulls
Discussionshttps://github.com/getsentry/sentry-javascript/discussions
Actionshttps://github.com/getsentry/sentry-javascript/actions
Security and quality7 (7)https://github.com/getsentry/sentry-javascript/security
Insightshttps://github.com/getsentry/sentry-javascript/insights
https://github.com/getsentry/sentry-javascript
s1gr1dhttps://github.com/s1gr1d
develophttps://github.com/getsentry/sentry-javascript/tree/develop
sig/cjs-checkhttps://github.com/getsentry/sentry-javascript/tree/sig/cjs-check
Conversationhttps://github.com/getsentry/sentry-javascript/pull/15927
Commits3 (3)https://github.com/getsentry/sentry-javascript/pull/15927/commits
Checkshttps://github.com/getsentry/sentry-javascript/pull/15927/checks
Files changedhttps://github.com/getsentry/sentry-javascript/pull/15927/files
fix(cjs): Use module instead of require for CJS checkhttps://github.com/getsentry/sentry-javascript/pull/15927#top
s1gr1dhttps://github.com/s1gr1d
develophttps://github.com/getsentry/sentry-javascript/tree/develop
sig/cjs-checkhttps://github.com/getsentry/sentry-javascript/tree/sig/cjs-check
https://github.com/s1gr1d
s1gr1dhttps://github.com/s1gr1d
Mar 31, 2025https://github.com/getsentry/sentry-javascript/pull/15927#issue-2959731557
Node 20.19.0https://nodejs.org/en/blog/release/v20.19.0
#14202 (comment)https://github.com/getsentry/sentry-javascript/issues/14202#issuecomment-2761399514
Node: Compatibility with CommonJShttps://nodejs.org/docs/latest-v15.x/api/esm.html#esm_interoperability_with_commonjs
Bun: Using requirehttps://bun.sh/docs/runtime/modules#using-require
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15927
https://github.com/s1gr1d
fix(cjs): Use module instead of require for CJS checkhttps://github.com/getsentry/sentry-javascript/pull/15927/commits/d3d81b3cb94cc0731c439652d4d575eb3e1b6333
d3d81b3https://github.com/getsentry/sentry-javascript/pull/15927/commits/d3d81b3cb94cc0731c439652d4d575eb3e1b6333
https://github.com/s1gr1d
s1gr1dhttps://github.com/s1gr1d
Lms24https://github.com/Lms24
andreiborzahttps://github.com/andreiborza
lforsthttps://github.com/lforst
mydeahttps://github.com/mydea
March 31, 2025 07:50https://github.com/getsentry/sentry-javascript/pull/15927#event-17052577394
https://github.com/lforst
lforsthttps://github.com/lforst
Mar 31, 2025 https://github.com/getsentry/sentry-javascript/pull/15927#pullrequestreview-2728478494
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/15927/files/d3d81b3cb94cc0731c439652d4d575eb3e1b6333
https://github.com/lforst
lforsthttps://github.com/lforst
Mar 31, 2025 https://github.com/getsentry/sentry-javascript/pull/15927#pullrequestreview-2728480205
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/15927/files/d3d81b3cb94cc0731c439652d4d575eb3e1b6333
packages/node/src/utils/commonjs.tshttps://github.com/getsentry/sentry-javascript/pull/15927/files/d3d81b3cb94cc0731c439652d4d575eb3e1b6333#diff-dcdb45d76810477ff35bf86baebb3322b8910200804b9eb4e0c52ff547455535
lforsthttps://github.com/lforst
Mar 31, 2025https://github.com/getsentry/sentry-javascript/pull/15927#discussion_r2020560371
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15927
s1gr1dhttps://github.com/s1gr1d
Mar 31, 2025https://github.com/getsentry/sentry-javascript/pull/15927#discussion_r2020565538
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15927
https://github.com/mydea
mydeahttps://github.com/mydea
Mar 31, 2025 https://github.com/getsentry/sentry-javascript/pull/15927#pullrequestreview-2728480581
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/15927/files/d3d81b3cb94cc0731c439652d4d575eb3e1b6333
packages/node/src/utils/commonjs.tshttps://github.com/getsentry/sentry-javascript/pull/15927/files/d3d81b3cb94cc0731c439652d4d575eb3e1b6333#diff-dcdb45d76810477ff35bf86baebb3322b8910200804b9eb4e0c52ff547455535
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15927
https://github.com/s1gr1d
add additional checkshttps://github.com/getsentry/sentry-javascript/pull/15927/commits/01c83742c1bd75e662b288b3a42dd1614f6c0967
01c8374https://github.com/getsentry/sentry-javascript/pull/15927/commits/01c83742c1bd75e662b288b3a42dd1614f6c0967
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Mar 31, 2025https://github.com/getsentry/sentry-javascript/pull/15927#issuecomment-2765445115
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15927
View base workflow runhttps://github.com/getsentry/sentry-javascript/actions/runs/14166674769
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15927
https://github.com/mydea
mydeahttps://github.com/mydea
Mar 31, 2025 https://github.com/getsentry/sentry-javascript/pull/15927#pullrequestreview-2728509156
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/15927/files/01c83742c1bd75e662b288b3a42dd1614f6c0967
packages/node/src/utils/commonjs.tshttps://github.com/getsentry/sentry-javascript/pull/15927/files/01c83742c1bd75e662b288b3a42dd1614f6c0967#diff-dcdb45d76810477ff35bf86baebb3322b8910200804b9eb4e0c52ff547455535
mydeahttps://github.com/mydea
Mar 31, 2025https://github.com/getsentry/sentry-javascript/pull/15927#discussion_r2020577418
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15927
mydeahttps://github.com/mydea
Mar 31, 2025https://github.com/getsentry/sentry-javascript/pull/15927#discussion_r2020577519
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15927
https://github.com/s1gr1d
s1gr1dhttps://github.com/s1gr1d
Mar 31, 2025 https://github.com/getsentry/sentry-javascript/pull/15927#ref-issue-2640339641
Integrations not working for Bun #14202 https://github.com/getsentry/sentry-javascript/issues/14202
https://github.com/s1gr1d
remove && modulehttps://github.com/getsentry/sentry-javascript/pull/15927/commits/1d30f257821ec5adf5838e696a0d8cf8fa8b715b
1d30f25https://github.com/getsentry/sentry-javascript/pull/15927/commits/1d30f257821ec5adf5838e696a0d8cf8fa8b715b
https://github.com/Lms24
Lms24https://github.com/Lms24
Mar 31, 2025 https://github.com/getsentry/sentry-javascript/pull/15927#pullrequestreview-2728533437
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/15927/files/1d30f257821ec5adf5838e696a0d8cf8fa8b715b
Lms24https://github.com/Lms24
https://github.com/getsentry/sentry-javascript/pull/15927#pullrequestreview-2728533437
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15927
https://github.com/s1gr1d
s1gr1dhttps://github.com/s1gr1d
eda7a1ehttps://github.com/getsentry/sentry-javascript/commit/eda7a1e45137dbea3e419fff088d03541e1bce90
Mar 31, 2025https://github.com/getsentry/sentry-javascript/pull/15927#event-17053317328
https://github.com/s1gr1d
s1gr1dhttps://github.com/s1gr1d
March 31, 2025 08:43https://github.com/getsentry/sentry-javascript/pull/15927#event-17053317775
https://github.com/Lms24
Lms24https://github.com/Lms24
Apr 2, 2025 https://github.com/getsentry/sentry-javascript/pull/15927#ref-issue-2963892296
No Server Spans or Profiles when using nodeProfilingIntegration on Vercel #15949 https://github.com/getsentry/sentry-javascript/issues/15949
onurtemizkanhttps://github.com/onurtemizkan
Apr 3, 2025 https://github.com/getsentry/sentry-javascript/pull/15927#ref-commit-f73c158
https://github.com/s1gr1d
https://github.com/onurtemizkan
fix(cjs): Usehttps://github.com/getsentry/sentry-javascript/commit/f73c1582a9944a3e37072cb8a85d9250b842aa71
modulehttps://github.com/getsentry/sentry-javascript/commit/f73c1582a9944a3e37072cb8a85d9250b842aa71
instead ofhttps://github.com/getsentry/sentry-javascript/commit/f73c1582a9944a3e37072cb8a85d9250b842aa71
requirehttps://github.com/getsentry/sentry-javascript/commit/f73c1582a9944a3e37072cb8a85d9250b842aa71
for CJS check (https://github.com/getsentry/sentry-javascript/commit/f73c1582a9944a3e37072cb8a85d9250b842aa71
#15927https://github.com/getsentry/sentry-javascript/pull/15927
)https://github.com/getsentry/sentry-javascript/commit/f73c1582a9944a3e37072cb8a85d9250b842aa71
f73c158https://github.com/getsentry/sentry-javascript/commit/f73c1582a9944a3e37072cb8a85d9250b842aa71
https://nodejs.org/en/blog/release/v20.19.0https://nodejs.org/en/blog/release/v20.19.0
#14202 (comment)https://github.com/getsentry/sentry-javascript/issues/14202#issuecomment-2761399514
https://nodejs.org/docs/latest-v15.x/api/esm.html#esm_interoperability_with_commonjshttps://nodejs.org/docs/latest-v15.x/api/esm.html#esm_interoperability_with_commonjs
https://bun.sh/docs/runtime/modules#using-requirehttps://bun.sh/docs/runtime/modules#using-require
https://github.com/s1gr1d
s1gr1dhttps://github.com/s1gr1d
Jan 2, 2026 https://github.com/getsentry/sentry-javascript/pull/15927#ref-pullrequest-3776080727
ref(node): Remove duplicate function isCjs #18662 https://github.com/getsentry/sentry-javascript/pull/18662
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Jan 2, 2026 https://github.com/getsentry/sentry-javascript/pull/15927#ref-issue-3776080985
ref(node): Remove duplicate function isCjs #18663 https://github.com/getsentry/sentry-javascript/issues/18663
s1gr1dhttps://github.com/s1gr1d
Jan 2, 2026 https://github.com/getsentry/sentry-javascript/pull/15927#ref-commit-4aa907e
https://github.com/s1gr1d
ref(node): Remove duplicate functionhttps://github.com/getsentry/sentry-javascript/commit/4aa907e8e127fd08fe23e10ca4ac387fcac3ea0d
isCjshttps://github.com/getsentry/sentry-javascript/commit/4aa907e8e127fd08fe23e10ca4ac387fcac3ea0d
(https://github.com/getsentry/sentry-javascript/commit/4aa907e8e127fd08fe23e10ca4ac387fcac3ea0d
#18662https://github.com/getsentry/sentry-javascript/pull/18662
)https://github.com/getsentry/sentry-javascript/commit/4aa907e8e127fd08fe23e10ca4ac387fcac3ea0d
4aa907ehttps://github.com/getsentry/sentry-javascript/commit/4aa907e8e127fd08fe23e10ca4ac387fcac3ea0d
#15927https://github.com/getsentry/sentry-javascript/pull/15927
#18663https://github.com/getsentry/sentry-javascript/issues/18663
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F15927
https://github.com/mydea
mydea https://github.com/mydea
https://github.com/getsentry/sentry-javascript/pull/15927/files/01c83742c1bd75e662b288b3a42dd1614f6c0967
https://github.com/Lms24
Lms24 https://github.com/Lms24
https://github.com/getsentry/sentry-javascript/pull/15927/files/1d30f257821ec5adf5838e696a0d8cf8fa8b715b
https://github.com/andreiborza
andreiborza https://github.com/andreiborza
https://github.com/lforst
lforst https://github.com/lforst
https://github.com/getsentry/sentry-javascript/pull/15927/files/d3d81b3cb94cc0731c439652d4d575eb3e1b6333
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15927
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/15927
https://github.com/s1gr1d
https://github.com/mydea
https://github.com/lforst
https://github.com/Lms24
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-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.