Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref(wasm): Convert wasm integration to functional integration #10230

Merged
merged 3 commits into from
Jan 19, 2024

Conversation

AbhiPrasad
Copy link
Member

We should think about moving the wasm integration into @sentry/browser and removing @sentry/wasm all together. What do you think?

@AbhiPrasad AbhiPrasad requested a review from mydea January 17, 2024 20:24
Copy link
Contributor

github-actions bot commented Jan 17, 2024

size-limit report 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 77.52 KB (0%)
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 68.8 KB (0%)
@sentry/browser (incl. Tracing, Replay with Canvas) - Webpack (gzipped) 72.68 KB (0%)
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 62.43 KB (0%)
@sentry/browser (incl. Tracing) - Webpack (gzipped) 32.8 KB (0%)
@sentry/browser (incl. Feedback) - Webpack (gzipped) 31.13 KB (0%)
@sentry/browser - Webpack (gzipped) 22.48 KB (0%)
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 75.11 KB (0%)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 66.72 KB (0%)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 32.58 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped) 24.19 KB (0%)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 210.25 KB (0%)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 98.22 KB (0%)
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 72.34 KB (0%)
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 35.62 KB (0%)
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 69.2 KB (0%)
@sentry/react - Webpack (gzipped) 22.52 KB (0%)
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 85.79 KB (0%)
@sentry/nextjs Client - Webpack (gzipped) 49.93 KB (0%)
@sentry-internal/feedback - Webpack (gzipped) 17.12 KB (0%)

* Process WASM stack traces to support server-side symbolication.
*
* This also hooks the WebAssembly loading browser API so that module
* registrations are intercepted.
Copy link
Member

Choose a reason for hiding this comment

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

while at it, let's deprecate this in favor of the function?

@mydea
Copy link
Member

mydea commented Jan 18, 2024

Moving this to browser in v8 makes sense to me, I think. I don't know a whole lot about wasm to be honest, but there is nothing in here which appears overly special 🤔

@AbhiPrasad
Copy link
Member Author

Moving this to browser in v8 makes sense to me

Okay so it can be used in Node as well, but it's not WinterCG so not available in every runtime :/

Maybe let's keep it a separate package for now then, just evaluate this later.

@AbhiPrasad AbhiPrasad merged commit 5f0b506 into develop Jan 19, 2024
52 checks passed
@AbhiPrasad AbhiPrasad deleted the abhi-wasm-func-integration branch January 19, 2024 14:15
Lms24 added a commit that referenced this pull request Jan 22, 2024
By using functional integrations in #10230, we started importing from
`@sentry/core` in the WASM integration. However, we didn't register
`@sentry/core` as a dependency, making rollup bundle core into the
package output. This changed the `build/npm` directory structure, making
our entry points in `package.json` invalid.

This PR fixes things by simply registering core as a dependency of wasm.
If we move WASM to core (which I strongly think we should do), we'll be
able to get rid of this again.
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.

2 participants