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
Domain: github.com
IPv4 address: 140.82.113.3
{"@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-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b133236b-4a57-aa4e-15fb-ba2807f9187c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EA72:1FA7DB:96B8A6:D246D0:6B05A091 |
| html-safe-nonce | d70a80b3986cc47bc963a2717738e24dc98da04cbc4e45f56eb441f8e7894730 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTcyOjFGQTdEQjo5NkI4QTY6RDI0NkQwOjZCMDVBMDkxIiwidmlzaXRvcl9pZCI6IjIzNDA3MDU5MTc2ODA4NTMxMzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 44ea814d65f9597df7915022c2a36e960bf509d98565bdb96221b776024840fe |
| hovercard-subject-tag | issue:3213171601 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/16846/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d5f68999c19cebeb9af0c4a804758aedf299c795052f293ee8bf9810ecec3fc5/getsentry/sentry-javascript/issues/16846 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d5f68999c19cebeb9af0c4a804758aedf299c795052f293ee8bf9810ecec3fc5/getsentry/sentry-javascript/issues/16846 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | timfish |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8bd54b96ae4db60ce608a145a6b2fb16216749fbdb431d9879aabfa7459f1139 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cda4791073b4da3005eb3d470dc0aef3956bbe34 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width