Skip to content

feat(node): Use node: prefix for node built-ins#11895

Merged
AbhiPrasad merged 4 commits intodevelopfrom
timfish/node-builtins-prefix
May 21, 2024
Merged

feat(node): Use node: prefix for node built-ins#11895
AbhiPrasad merged 4 commits intodevelopfrom
timfish/node-builtins-prefix

Conversation

@timfish
Copy link
Copy Markdown
Collaborator

@timfish timfish commented May 4, 2024

Cloudflare workers Node compatibility mode requires that all node built-ins are loaded with the node: prefix.

@sentry/node still wont work in compat mode for now because our dependencies (ie. otel) are not using the prefix, I guess due to their current Node version support. They state that they support Node v14 but v14.18 is required to use the prefix.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented May 6, 2024

size-limit report 📦

Path Size
@sentry/browser 21.65 KB (0%)
@sentry/browser (incl. Tracing) 32.68 KB (0%)
@sentry/browser (incl. Tracing, Replay) 68.02 KB (0%)
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 61.42 KB (0%)
@sentry/browser (incl. Tracing, Replay with Canvas) 72.06 KB (0%)
@sentry/browser (incl. Tracing, Replay, Feedback) 84.15 KB (0%)
@sentry/browser (incl. Feedback) 37.66 KB (0%)
@sentry/browser (incl. sendFeedback) 26.21 KB (0%)
@sentry/browser (incl. FeedbackAsync) 30.73 KB (0%)
@sentry/react 24.33 KB (0%)
@sentry/react (incl. Tracing) 35.64 KB (0%)
@sentry/vue 25.48 KB (0%)
@sentry/vue (incl. Tracing) 34.47 KB (0%)
@sentry/svelte 21.78 KB (0%)
CDN Bundle 24.13 KB (0%)
CDN Bundle (incl. Tracing) 34.05 KB (0%)
CDN Bundle (incl. Tracing, Replay) 67.72 KB (0%)
CDN Bundle (incl. Tracing, Replay, Feedback) 72.83 KB (0%)
CDN Bundle - uncompressed 70.99 KB (0%)
CDN Bundle (incl. Tracing) - uncompressed 101 KB (0%)
CDN Bundle (incl. Tracing, Replay) - uncompressed 210.61 KB (0%)
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 223.09 KB (0%)
@sentry/nextjs (client) 34.87 KB (0%)
@sentry/sveltekit (client) 33.24 KB (0%)
@sentry/node 139.77 KB (-5.14% 🔽)

@timfish timfish marked this pull request as ready for review May 6, 2024 17:15
@AbhiPrasad AbhiPrasad merged commit 99351c3 into develop May 21, 2024
@AbhiPrasad AbhiPrasad deleted the timfish/node-builtins-prefix branch May 21, 2024 12:27
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.

3 participants