@@ -29,7 +29,7 @@ To make optional code eligible for tree shaking, you can replace various flags i
29
29
30
30
### Tree Shaking Optional Code With Webpack
31
31
32
- To tree shake Sentry debug code in your webpack bundles, we recommend using webpack's [ DefinePlugin] ( https://webpack.js.org/plugins/define-plugin/ ) .
32
+ To tree shake Sentry debug code in your webpack bundles, we recommend using webpack's [ DefinePlugin] ( https://webpack.js.org/plugins/define-plugin/ ) :
33
33
34
34
``` javascript {filename:webpack.config.js}
35
35
const webpack = require (" webpack" );
@@ -52,7 +52,7 @@ module.exports = {
52
52
53
53
### Tree Shaking Optional Code With Rollup
54
54
55
- If you're using ` rollup.js ` , we recommend using [ Rollup's ` replace ` plugin] ( https://github.com/rollup/plugins/tree/master/packages/replace ) .
55
+ If you're using ` rollup.js ` , we recommend using [ Rollup's ` replace ` plugin] ( https://github.com/rollup/plugins/tree/master/packages/replace ) :
56
56
57
57
``` javascript {filename:rollup.config.js}
58
58
import replace from " @rollup/plugin-replace" ;
@@ -102,9 +102,9 @@ For more information on custom webpack configurations in Next.js, see [Custom We
102
102
## Tree Shaking Default Integrations
103
103
104
104
By default, the Sentry SDK sets up a list of [ default integrations] ( ../integrations/default ) that extend your
105
- SDK functionality. Furthermore, you can also add [ additional] ( ../integrations/plugin ) or [ custom] ( ../integrations/custom )
105
+ SDK functionality. You can also add [ additional] ( ../integrations/plugin ) or [ custom] ( ../integrations/custom )
106
106
integrations to your SDK configuration.
107
- In case you do not want to include default integrations in your config, you can [ disable] ( ../options/#integration-configuration )
107
+ If you don't want to include default integrations in your config, you can [ disable] ( ../options/#integration-configuration )
108
108
them and add your custom array of integrations.
109
109
However, if you also want to tree shake the unused default integrations, you can do so by creating a ` Client ` yourself.
110
110
By doing this, you essentially bypass ` Sentry.init ` which normally creates a ` Client ` for you.
@@ -139,5 +139,9 @@ const client = new BrowserClient({
139
139
getCurrentHub ().bindClient (client);
140
140
```
141
141
142
- Note that in contrast to ` Sentry.init ` , the ` Client ` constructor expects options of type ` ClientOptions ` instead of ` Options ` .
142
+ <Note >
143
+
144
+ In contrast to ` Sentry.init ` , the ` Client ` constructor expects options of type ` ClientOptions ` instead of ` Options ` .
143
145
This means that the ` ClientOptions.integrations ` property is the final array of integrations that will be used.
146
+
147
+ </Note >
0 commit comments