Skip to content

Conversation

@onurtemizkan
Copy link
Collaborator

@onurtemizkan onurtemizkan commented Nov 5, 2025

Ref / Resolves: #18089

hoist-non-react-statics package we depend on is not ESM compatible, and causing issues for users on Cloudflare environments. As this package has not been updated in 5 years, and our use has not changed for long time, I think we can just inline this to make it compatible, and save users from explicitly externalizing this package.

@onurtemizkan onurtemizkan force-pushed the onur/inline-hoist-non-react-statics branch from b28862f to 4cfaf34 Compare November 5, 2025 15:16
@github-actions
Copy link
Contributor

github-actions bot commented Nov 5, 2025

node-overhead report 🧳

Note: This is a synthetic benchmark with a minimal express app and does not necessarily reflect the real-world performance impact in an application.

Scenario Requests/s % of Baseline Prev. Requests/s Change %
GET Baseline 8,584 - 8,519 +1%
GET With Sentry 1,682 20% 1,740 -3%
GET With Sentry (error only) 6,065 71% 6,121 -1%
POST Baseline 1,191 - 1,177 +1%
POST With Sentry 576 48% 579 -1%
POST With Sentry (error only) 1,058 89% 1,053 +0%
MYSQL Baseline 3,332 - 3,282 +2%
MYSQL With Sentry 457 14% 453 +1%
MYSQL With Sentry (error only) 2,690 81% 2,661 +1%

View base workflow run

@onurtemizkan onurtemizkan force-pushed the onur/inline-hoist-non-react-statics branch 3 times, most recently from 76f668a to 8d0a14e Compare November 11, 2025 09:59
@onurtemizkan onurtemizkan marked this pull request as ready for review November 11, 2025 10:24
@chargome chargome self-assigned this Nov 13, 2025
@onurtemizkan onurtemizkan force-pushed the onur/inline-hoist-non-react-statics branch from 3e95001 to 09dd869 Compare November 17, 2025 09:02
Comment on lines 42 to 45
"@sentry/browser": "10.25.0",
"@sentry/core": "10.25.0"
"@sentry/browser": "10.30.0",
"@sentry/core": "10.30.0",

This comment was marked as outdated.

@onurtemizkan onurtemizkan force-pushed the onur/inline-hoist-non-react-statics branch from 2b9939c to 1223695 Compare December 11, 2025 15:55
"@types/history-4": "npm:@types/[email protected]",
"@types/history-5": "npm:@types/[email protected]",
"@types/hoist-non-react-statics": "^3.3.5",
"@types/node-fetch": "^2.6.11",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Unrelated @types/node-fetch dependency accidentally added

The @types/node-fetch package was added to devDependencies where @types/hoist-non-react-statics was removed. There's no usage of node-fetch anywhere in the react package, so this appears to be accidentally included during the edit. The dependency is unused and adds unnecessary bloat to the dev dependencies.

Fix in Cursor Fix in Web

@github-actions
Copy link
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 24.81 kB - -
@sentry/browser - with treeshaking flags 23.3 kB - -
@sentry/browser (incl. Tracing) 41.55 kB - -
@sentry/browser (incl. Tracing, Profiling) 46.14 kB - -
@sentry/browser (incl. Tracing, Replay) 79.97 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 69.7 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 84.64 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 96.89 kB - -
@sentry/browser (incl. Feedback) 41.52 kB - -
@sentry/browser (incl. sendFeedback) 29.49 kB - -
@sentry/browser (incl. FeedbackAsync) 34.48 kB - -
@sentry/react 26.52 kB - -
@sentry/react (incl. Tracing) 43.75 kB - -
@sentry/vue 29.27 kB - -
@sentry/vue (incl. Tracing) 43.36 kB - -
@sentry/svelte 24.82 kB - -
CDN Bundle 27.24 kB - -
CDN Bundle (incl. Tracing) 42.23 kB - -
CDN Bundle (incl. Tracing, Replay) 78.75 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 84.21 kB - -
CDN Bundle - uncompressed 80.04 kB - -
CDN Bundle (incl. Tracing) - uncompressed 125.39 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 241.42 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 254.18 kB - -
@sentry/nextjs (client) 45.97 kB - -
@sentry/sveltekit (client) 41.92 kB - -
@sentry/node-core 51.5 kB - -
@sentry/node 159.94 kB - -
@sentry/node - without tracing 92.91 kB +0.02% +14 B 🔺
@sentry/aws-serverless 108.44 kB -0.01% -1 B 🔽

View base workflow run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hydrogen 2025.7.0, entry.server.tsx doesn't work, (ReferenceError: require is not defined)

3 participants