René's URL Explorer Experiment


Title: `@sentry/core` is marked as being side effect free but it is not · Issue #16846 · getsentry/sentry-javascript · GitHub

Open Graph Title: `@sentry/core` is marked as being side effect free but it is not · Issue #16846 · getsentry/sentry-javascript

X Title: `@sentry/core` is marked as being side effect free but it is not · Issue #16846 · getsentry/sentry-javascript

Description: Description sentry-javascript/packages/core/package.json Line 65 in b746c23 "sideEffects": false, Our build output contains imports where Rollup detects side effects: But time.ts is the most obvious place: sentry-javascript/packages/core...

Open Graph Description: Description sentry-javascript/packages/core/package.json Line 65 in b746c23 "sideEffects": false, Our build output contains imports where Rollup detects side effects: But time.ts is the most obviou...

X Description: Description sentry-javascript/packages/core/package.json Line 65 in b746c23 "sideEffects": false, Our build output contains imports where Rollup detects side effects: But time.ts is the m...

Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/16846

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`@sentry/core` is marked as being side effect free but it is not","articleBody":"### Description\n\nhttps://github.com/getsentry/sentry-javascript/blob/b746c23583f50cdd6becd29f8d57153d3e8936e3/packages/core/package.json#L65\n\nOur build output contains imports where Rollup detects side effects:\n\u003cimg width=\"703\" height=\"278\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/045a7440-ed98-4c19-9fb1-22a0e4c445b4\" />\n\nBut `time.ts` is the most obvious place:\nhttps://github.com/getsentry/sentry-javascript/blob/b746c23583f50cdd6becd29f8d57153d3e8936e3/packages/core/src/utils/time.ts#L67\n\nOur current build output gives warning with Cloudflare's Wranger:\n```\n▲ [WARNING] Ignoring this import because \"../../../../packages/core/build/esm/utils/time.js\" was marked as having no side effects [ignored-bare-import]\n\n    ../../../../packages/core/build/esm/trpc.js:8:7:\n      8 │ import './utils/time.js';\n        ╵        ~~~~~~~~~~~~~~~~~\n\n  \"sideEffects\" is false in the enclosing \"package.json\" file:\n\n    ../../../../packages/core/build/esm/package.json:1:36:\n      1 │ {\"type\":\"module\",\"version\":\"9.35.0\",\"sideEffects\":false}\n        ╵                                     ~~~~~~~~~~~~~\n\n```","author":{"url":"https://github.com/timfish","@type":"Person","name":"timfish"},"datePublished":"2025-07-08T16:47:29Z","url":"https://github.com/getsentry/sentry-javascript/issues/16846"}

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:b133236b-4a57-aa4e-15fb-ba2807f9187c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEA72:1FA7DB:96B8A6:D246D0:6B05A091
html-safe-nonced70a80b3986cc47bc963a2717738e24dc98da04cbc4e45f56eb441f8e7894730
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTcyOjFGQTdEQjo5NkI4QTY6RDI0NkQwOjZCMDVBMDkxIiwidmlzaXRvcl9pZCI6IjIzNDA3MDU5MTc2ODA4NTMxMzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac44ea814d65f9597df7915022c2a36e960bf509d98565bdb96221b776024840fe
hovercard-subject-tagissue:3213171601
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/getsentry/sentry-javascript/16846/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d5f68999c19cebeb9af0c4a804758aedf299c795052f293ee8bf9810ecec3fc5/getsentry/sentry-javascript/issues/16846
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d5f68999c19cebeb9af0c4a804758aedf299c795052f293ee8bf9810ecec3fc5/getsentry/sentry-javascript/issues/16846
og:image:altDescription sentry-javascript/packages/core/package.json Line 65 in b746c23 "sideEffects": false, Our build output contains imports where Rollup detects side effects: But time.ts is the most obviou...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametimfish
hostnamegithub.com
expected-hostnamegithub.com
None8bd54b96ae4db60ce608a145a6b2fb16216749fbdb431d9879aabfa7459f1139
turbo-cache-controlno-preview
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
releasecda4791073b4da3005eb3d470dc0aef3956bbe34
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/16846#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F16846
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%2Fissues%2F16846
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=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/issues/16846
Reloadhttps://github.com/getsentry/sentry-javascript/issues/16846
Reloadhttps://github.com/getsentry/sentry-javascript/issues/16846
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues332 (332)https://github.com/getsentry/sentry-javascript/issues
Pull requests55 (55)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
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/16846
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/16846
#16929https://github.com/getsentry/sentry-javascript/pull/16929
@sentry/core is marked as being side effect free but it is nothttps://github.com/getsentry/sentry-javascript/issues/16846#top
#16929https://github.com/getsentry/sentry-javascript/pull/16929
https://github.com/timfish
timfishhttps://github.com/timfish
on Jul 8, 2025https://github.com/getsentry/sentry-javascript/issues/16846#issue-3213171601
sentry-javascript/packages/core/package.jsonhttps://github.com/getsentry/sentry-javascript/blob/b746c23583f50cdd6becd29f8d57153d3e8936e3/packages/core/package.json#L65
b746c23https://github.com/getsentry/sentry-javascript/commit/b746c23583f50cdd6becd29f8d57153d3e8936e3
https://private-user-images.githubusercontent.com/1150298/463792674-045a7440-ed98-4c19-9fb1-22a0e4c445b4.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTU1MzExOTcsIm5iZiI6MTc5NTUzMDg5NywicGF0aCI6Ii8xMTUwMjk4LzQ2Mzc5MjY3NC0wNDVhNzQ0MC1lZDk4LTRjMTktOWZiMS0yMmEwZTRjNDQ1YjQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MTEyNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjExMjRUMTQzNDU3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZDRmNDkwNDM5NjA5MTMyNzdlZTMwZWUyZjdhNWI1ZTQ5NWZhYmM1MzNkNGMyZTFiNmVhOWNhZjRhZDVmNDg4YSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.UOtqttIbGqej8MVXJ1g8DwGyVKloId7hs07hzlBkgEg
sentry-javascript/packages/core/src/utils/time.tshttps://github.com/getsentry/sentry-javascript/blob/b746c23583f50cdd6becd29f8d57153d3e8936e3/packages/core/src/utils/time.ts#L67
b746c23https://github.com/getsentry/sentry-javascript/commit/b746c23583f50cdd6becd29f8d57153d3e8936e3
https://github.com/mydea
mydeahttps://github.com/mydea
on Jul 10, 2025https://github.com/getsentry/sentry-javascript/issues/16846#issuecomment-3056005236
https://github.com/timfish
timfishhttps://github.com/timfish
on Jul 10, 2025https://github.com/getsentry/sentry-javascript/issues/16846#issuecomment-3056957616
sentry-javascript/packages/core/src/tracing/errors.tshttps://github.com/getsentry/sentry-javascript/blob/ceb003c15973c2d8f437dfb7025eedffbc8bc8b0/packages/core/src/tracing/errors.ts#L41-L43
ceb003chttps://github.com/getsentry/sentry-javascript/commit/ceb003c15973c2d8f437dfb7025eedffbc8bc8b0
https://github.com/mydea
mydeahttps://github.com/mydea
on Jul 10, 2025https://github.com/getsentry/sentry-javascript/issues/16846#issuecomment-3057135431
https://github.com/timfish
timfishhttps://github.com/timfish
on Jul 10, 2025https://github.com/getsentry/sentry-javascript/issues/16846#issuecomment-3057265679
mydeahttps://github.com/mydea
on Jul 10, 2025https://github.com/getsentry/sentry-javascript/issues/16846#event-18567097783
ref(core): Avoid side-effect of & streamline `timestampInSeconds` met…https://github.com/getsentry/sentry-javascript/commit/7be5f79bc5711761b5e0a5924fc3d9b56b7d8298
7be5f79https://github.com/getsentry/sentry-javascript/commit/7be5f79bc5711761b5e0a5924fc3d9b56b7d8298
ref(core): Avoid keeping span-FF map on GLOBAL_OBJhttps://github.com/getsentry/sentry-javascript/commit/437d2eaa34df10c12d0923cfc708e1449510d486
437d2eahttps://github.com/getsentry/sentry-javascript/commit/437d2eaa34df10c12d0923cfc708e1449510d486
ref: Avoid `enum` usage (#16922)https://github.com/getsentry/sentry-javascript/commit/9c7c6bf9c2db94430e2698abdd1799f84d2b6b48
#16922https://github.com/getsentry/sentry-javascript/pull/16922
9c7c6bfhttps://github.com/getsentry/sentry-javascript/commit/9c7c6bf9c2db94430e2698abdd1799f84d2b6b48
ref(core): Avoid keeping span-FF map on GLOBAL_OBJhttps://github.com/getsentry/sentry-javascript/commit/7af3f35455cfeabb279b01a3f47e69afd920c614
7af3f35https://github.com/getsentry/sentry-javascript/commit/7af3f35455cfeabb279b01a3f47e69afd920c614
https://github.com/mydea
mydeahttps://github.com/mydea
on Jul 11, 2025https://github.com/getsentry/sentry-javascript/issues/16846#issuecomment-3061205729
mydeahttps://github.com/mydea
on Jul 11, 2025https://github.com/getsentry/sentry-javascript/issues/16846#event-18581403942
ref(core): Avoid keeping span-FF map on GLOBAL_OBJhttps://github.com/getsentry/sentry-javascript/commit/c04d54ac3fafdb6a66492cd867607f0c0335702f
c04d54ahttps://github.com/getsentry/sentry-javascript/commit/c04d54ac3fafdb6a66492cd867607f0c0335702f
https://github.com/timfish
timfishhttps://github.com/timfish
on Jul 11, 2025https://github.com/getsentry/sentry-javascript/issues/16846#issuecomment-3061664199
AbhiPrasadhttps://github.com/AbhiPrasad
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#16929https://github.com/getsentry/sentry-javascript/pull/16929
on Jul 11, 2025https://github.com/getsentry/sentry-javascript/issues/16846#event-18587305654
AbhiPrasadhttps://github.com/AbhiPrasad
on Jul 11, 2025https://github.com/getsentry/sentry-javascript/issues/16846#event-18587305681
build: Disable side-effects for any `./debug-build.ts` file (#16929)https://github.com/getsentry/sentry-javascript/commit/9ec2bffd63c4d6c8e9c798d981e711e87404c1b4
#16929https://github.com/getsentry/sentry-javascript/pull/16929
https://docs.github.com/articles/closing-issues-via-commit-messages
9ec2bffhttps://github.com/getsentry/sentry-javascript/commit/9ec2bffd63c4d6c8e9c798d981e711e87404c1b4
fix(core): Remove side-effect from `tracing/errors.ts` (#16888)https://github.com/getsentry/sentry-javascript/commit/baef98296933de90384600de3d98ac00d4585e5e
#16888https://github.com/getsentry/sentry-javascript/pull/16888
https://docs.github.com/articles/closing-issues-via-commit-messages
baef982https://github.com/getsentry/sentry-javascript/commit/baef98296933de90384600de3d98ac00d4585e5e
mydeahttps://github.com/mydea
on Jul 14, 2025https://github.com/getsentry/sentry-javascript/issues/16846#event-18612488090
ref(core): Avoid side-effect of `vercelAiEventProcessor` (#16925)https://github.com/getsentry/sentry-javascript/commit/5c3175f9f8921a29b49edddda437bf52b0f2f00e
#16925https://github.com/getsentry/sentry-javascript/pull/16925
5c3175fhttps://github.com/getsentry/sentry-javascript/commit/5c3175f9f8921a29b49edddda437bf52b0f2f00e
ref(core): Keep client-logger map on carrier & avoid side-effect (#16923https://github.com/getsentry/sentry-javascript/commit/61feeb341628d12b923a7bdb2f92284c7c6a9b59
#16923https://github.com/getsentry/sentry-javascript/pull/16923
61feeb3https://github.com/getsentry/sentry-javascript/commit/61feeb341628d12b923a7bdb2f92284c7c6a9b59
ref(core): Avoid keeping span-FF map on GLOBAL_OBJhttps://github.com/getsentry/sentry-javascript/commit/1af6abfdd3a513c3996968089f80313ce3b21a58
1af6abfhttps://github.com/getsentry/sentry-javascript/commit/1af6abfdd3a513c3996968089f80313ce3b21a58
ref(core): Avoid keeping span-FF map on GLOBAL_OBJ (#16924)https://github.com/getsentry/sentry-javascript/commit/50120cb64d9d084c159fb8ee0ead6f0bab083e32
#16924https://github.com/getsentry/sentry-javascript/pull/16924
50120cbhttps://github.com/getsentry/sentry-javascript/commit/50120cb64d9d084c159fb8ee0ead6f0bab083e32
msonnbhttps://github.com/msonnb
on Jul 15, 2025https://github.com/getsentry/sentry-javascript/issues/16846#event-18634727059
ref(core): Avoid keeping span-FF map on GLOBAL_OBJ (#16924)https://github.com/getsentry/sentry-javascript/commit/32b29e9dcc8dce45486c619d0388d7a8ce82f09c
#16924https://github.com/getsentry/sentry-javascript/pull/16924
32b29e9https://github.com/getsentry/sentry-javascript/commit/32b29e9dcc8dce45486c619d0388d7a8ce82f09c
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/16846
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/16846
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.