Skip to content

Conversation

@lobsterkatie
Copy link
Member

@lobsterkatie lobsterkatie commented Apr 27, 2022

This removes the esModuleInterop setting in the following places:

  • @sentry/gatsby, where it's only being used for @sentry/tracing, which is an ES module, making the injected helper a pass-through.

  • @sentry/vue and @sentry/wasm, where it isn't being used at all (i.e., none of the helpers show up in the built code, meaning there's nothing in the source code that requires (no pun intended!) them).

Doing this saves us having to port more config than needed to the new build process.

@github-actions
Copy link
Contributor

github-actions bot commented Apr 27, 2022

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 18.35 KB (-8.87% 🔽)
@sentry/browser - ES5 CDN Bundle (minified) 57.52 KB (-10.98% 🔽)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 17.13 KB (-9.19% 🔽)
@sentry/browser - ES6 CDN Bundle (minified) 51.75 KB (-10.73% 🔽)
@sentry/browser - Webpack (gzipped + minified) 20.94 KB (-9.88% 🔽)
@sentry/browser - Webpack (minified) 72.5 KB (-11.28% 🔽)
@sentry/react - Webpack (gzipped + minified) 20.98 KB (-9.89% 🔽)
@sentry/nextjs Client - Webpack (gzipped + minified) 45.97 KB (-4.34% 🔽)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 24.13 KB (-7.45% 🔽)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 22.64 KB (-7.52% 🔽)

@lobsterkatie lobsterkatie force-pushed the kmclb-remove-unnecessary-esmoduleinterop branch from da47980 to c069bb1 Compare April 27, 2022 07:40
@lobsterkatie lobsterkatie force-pushed the kmclb-remove-unnecessary-esmoduleinterop branch 4 times, most recently from b13c135 to 7b8363d Compare April 27, 2022 18:24
@lobsterkatie lobsterkatie force-pushed the kmclb-remove-unnecessary-esmoduleinterop branch from 7b8363d to 61ea3a9 Compare April 27, 2022 18:54
@lobsterkatie lobsterkatie marked this pull request as ready for review April 27, 2022 21:59
@lobsterkatie lobsterkatie merged commit c55003f into 7.x Apr 27, 2022
@lobsterkatie lobsterkatie deleted the kmclb-remove-unnecessary-esmoduleinterop branch April 27, 2022 22:00
@AbhiPrasad AbhiPrasad added this to the 7.0.0 milestone May 12, 2022
AbhiPrasad pushed a commit that referenced this pull request May 30, 2022
This removes the `esModuleInterop` setting in the following places:

- `@sentry/gatsby`, where it's only being used for `@sentry/tracing`, which is an ES module, making the injected helper a pass-through[1].

- `@sentry/vue` and `@sentry/wasm`, where it isn't being used at all (i.e., none of the helpers show up in the built code, meaning there's nothing in the source code that requires (no pun intended!) them).

Doing this saves us having to port more config than needed to the new build process.

[1] https://github.com/microsoft/tslib/blob/a7129c7bd500ce378ec19234247f3d0b1635e89d/tslib.js#L263
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.

4 participants