sentry-javascript-bundler-plugins icon indicating copy to clipboard operation
sentry-javascript-bundler-plugins copied to clipboard

feat(core): Use `globalThis` for code injection

Open timfish opened this issue 1 year ago • 6 comments

Since all our supported platforms now support globalThis, from v8 of the JavaScript SDK we now use this to read globals and I recently changed this for the nextjs SDK code injection. We can also do this for the bundler plugins since this saves ~90 bytes from each injected code snippet.

timfish avatar Sep 23 '24 11:09 timfish