Skip to content

Commit 43a9662

Browse files
lforstimatwawana
andauthored
Adjust JS CDN bundle page to reflect ES5/ES6 naming changes (#4962)
Co-authored-by: Isabel <[email protected]>
1 parent 5a5dc8b commit 43a9662

File tree

1 file changed

+12
-5
lines changed
  • src/platforms/javascript/common/install

1 file changed

+12
-5
lines changed

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

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ Sentry supports loading the JavaScript SDK from a CDN. Generally we suggest usin
1616
></script>
1717
```
1818

19+
<Alert level="info" title="Updates to naming scheme in SDK version 7">
20+
21+
Version 7 of the Sentry JavaScript SDKs changed the bundles to be ES6 by default.
22+
Previously, the default bundles were compiled to ES5. If you need to support ES5, see [Available Bundles](#available-bundles) or the [Migration Guide to Version 7](https://github.com/getsentry/sentry-javascript/blob/master/MIGRATION.md#upgrading-from-6x-to-7x).
23+
24+
</Alert>
25+
1926
## Performance Bundle
2027

2128
To use Sentry's performance tracing, an alternative bundle is needed. This allows us to keep the filesize down for users who only need error monitoring.
@@ -30,7 +37,7 @@ To use Sentry's performance tracing, an alternative bundle is needed. This allow
3037

3138
<Note>
3239

33-
You only need to load `bundle.tracing.min.js`, which provides both error and performance monitoring. There is also an ES6 version of the tracing bundle, `bundle.tracing.es6.min.js`.
40+
You only need to load `bundle.tracing.min.js`, which provides both error and performance monitoring. There is also an ES5 version of the tracing bundle, `bundle.tracing.es5.min.js`.
3441

3542
</Note>
3643

@@ -57,13 +64,13 @@ Our CDN hosts a variety of bundles:
5764
- `@sentry/browser` and `@sentry/tracing` together (named `bundle.tracing.<modifiers>.js`)
5865
- each of the integrations in `@sentry/integrations` (named `<integration-name>.<modifiers>.js`)
5966

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 production. In a development environment, it makes most sense to use the unminified bundle, which always includes logging.)
67+
Each bundle is offered in both ES6 and ES5 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 production. In a development environment, it makes most sense to use the unminified bundle, which always includes logging.)
6168

6269
For example:
6370

64-
- `bundle.js` is `@sentry/browser`, compiled to ES5 but not minified, with debug logging included (as it is for all unminified bundles)
65-
- `rewriteframes.es6.min.js` is the `RewriteFrames` integration, compiled to ES6 and minified, with no debug logging
66-
- `bundle.tracing.es6.debug.min.js` is `@sentry/browser` and `@sentry/tracing` bundled together, compiled to ES6 and minified, with debug logging included
71+
- `bundle.js` is `@sentry/browser`, compiled to ES6 but not minified, with debug logging included (as it is for all unminified bundles)
72+
- `rewriteframes.es5.min.js` is the `RewriteFrames` integration, compiled to ES5 and minified, with no debug logging
73+
- `bundle.tracing.es5.debug.min.js` is `@sentry/browser` and `@sentry/tracing` bundled together, compiled to ES5 and minified, with debug logging included
6774

6875
<JsBundleList />
6976

0 commit comments

Comments
 (0)