Skip to content

Commit 42976d5

Browse files
committed
add info about available bundles
1 parent 79f8db5 commit 42976d5

File tree

1 file changed

+9
-1
lines changed
  • src/platforms/javascript/common/install

1 file changed

+9
-1
lines changed

src/platforms/javascript/common/install/cdn.mdx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,15 @@ Sentry.init({
5151

5252
## Available Bundles
5353

54-
A variety of bundles are provided which are optimized for Sentry's various integrations.
54+
Our CDN hosts a variety of bundles:
55+
56+
- `@sentry/browser` (named `bundle.<modifiers>.js`)
57+
- `@sentry/browser` and `@sentry/tracing` together (named `bundle.tracing.<modifiers>.js`)
58+
- each of the integrations in `@sentry/integrations` (named `<integration-name>.<modifiers>.js`)
59+
60+
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.)
61+
62+
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).
5563

5664
<JsBundleList />
5765

0 commit comments

Comments
 (0)