Skip to content

Commit 9f1410f

Browse files
committed
update tree shaking example after integration export changes
1 parent 33e67e0 commit 9f1410f

File tree

1 file changed

+10
-7
lines changed
  • src/platforms/javascript/common/configuration/tree-shaking

1 file changed

+10
-7
lines changed

src/platforms/javascript/common/configuration/tree-shaking/index.mdx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default {
6363

6464
<PlatformSection supported={["javascript.nextjs"]}>
6565

66-
## Tree Shaking Debug Code With Next.js
66+
### Tree Shaking Debug Code With Next.js
6767

6868
To tree shake Sentry debug code in Next.js projects, you can use webpack's [DefinePlugin](https://webpack.js.org/plugins/define-plugin/) in your Next.js configuration.
6969

@@ -101,10 +101,13 @@ The following example shows how to create and bind a `Client` which enables tree
101101
```javascript {filename:main.js}
102102
import {
103103
BrowserClient,
104+
Breadcrumbs,
105+
Dedupe,
104106
defaultStackParser,
105-
makeFetchTransport,
106-
Integrations,
107107
getCurrentHub,
108+
GlobalHandlers,
109+
makeFetchTransport,
110+
LinkedErrors,
108111
} from "@sentry/browser";
109112

110113
const client = new BrowserClient({
@@ -116,10 +119,10 @@ const client = new BrowserClient({
116119
stackParser: defaultStackParser,
117120
// Only the integrations listed here will be used
118121
integrations: [
119-
new Integrations.Breadcrumbs(),
120-
new Integrations.GlobalHandlers(),
121-
new Integrations.LinkedErrors(),
122-
new Integrations.Dedupe(),
122+
new Breadcrumbs(),
123+
new GlobalHandlers(),
124+
new LinkedErrors(),
125+
new Dedupe(),
123126
],
124127
});
125128

0 commit comments

Comments
 (0)