From 9aecf51f3d579a69b2df3baadd81d2c0c657962d Mon Sep 17 00:00:00 2001 From: Katie Byers Date: Tue, 15 Mar 2022 23:38:39 -0700 Subject: [PATCH 1/3] add info about available bundles --- src/platforms/javascript/common/install/cdn.mdx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/platforms/javascript/common/install/cdn.mdx b/src/platforms/javascript/common/install/cdn.mdx index d91be981399336..bb54f3fd39558b 100644 --- a/src/platforms/javascript/common/install/cdn.mdx +++ b/src/platforms/javascript/common/install/cdn.mdx @@ -51,7 +51,15 @@ Sentry.init({ ## Available Bundles -A variety of bundles are provided which are optimized for Sentry's various integrations. +Our CDN hosts a variety of bundles: + +- `@sentry/browser` (named `bundle..js`) +- `@sentry/browser` and `@sentry/tracing` together (named `bundle.tracing..js`) +- each of the integrations in `@sentry/integrations` (named `..js`) + +Each bundle is offered in both ES5 and ES6 versions, and for each version there are three bundle varieties: unminified, minified, and minified with debug logging. (That last version can be helpful for times when you need to debug an issue which only occurs in prod. In dev, it makes most sense to use the unminified bundle, which always includes logging.) + +So, for example, `bundle.tracing.es6.debug.min.js` is `@sentry/browser` and `@sentry/tracing` bundled together, compiled to ES6, and minified (but with debug logging included). On the simpler end of the naming spectrum, `bundle.js` is `@sentry/browser`, compiled to ES5 but not minified (with debug logging included, as it is for all unminified bundles). From e5166a45043e3f658ba27a2f0ddc52f4166c7b4e Mon Sep 17 00:00:00 2001 From: Katie Byers Date: Tue, 15 Mar 2022 23:38:58 -0700 Subject: [PATCH 2/3] do random wordsmithing --- src/platforms/javascript/common/install/cdn.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/platforms/javascript/common/install/cdn.mdx b/src/platforms/javascript/common/install/cdn.mdx index bb54f3fd39558b..b4187fdd396a37 100644 --- a/src/platforms/javascript/common/install/cdn.mdx +++ b/src/platforms/javascript/common/install/cdn.mdx @@ -6,7 +6,7 @@ description: "Learn how Sentry supports loading its JavaScript SDK via a CDN." import JsBundleList from "~src/components/jsBundleList"; -Sentry supports loading its JavaScript SDK via a CDN. Generally we suggest using our npm package (`@sentry/browser`) as utilizing a CDN create scenarios where Sentry is unable to load due to networking issues or common extensions like ad blockers. If you _must_ use a CDN, take a look at [loading Sentry lazily with our JS loader](../lazy-load-sentry/). +Sentry supports loading the JavaScript SDK via a CDN. Generally we suggest using our npm package (`@sentry/browser`) instead, as using the CDN can create scenarios where Sentry is unable to load due to networking issues or common extensions like ad blockers. If you _must_ use a CDN, take a look at [loading Sentry lazily with our JS loader](../lazy-load-sentry/), which provides a deferred version of our minified ES5 browser bundle. To see what other bundles are available, see [Available Bundles](#available-bundles) below. ```html {tabTitle: CDN}