@sentry/esbuild-plugin 2.21.1 → 2.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -82,6 +82,12 @@ require("esbuild").build({
|
|
|
82
82
|
- [`deploy`](#releasedeploy)
|
|
83
83
|
- [`cleanArtifacts`](#releasecleanartifacts)
|
|
84
84
|
- [`uploadLegacySourcemaps`](#releaseuploadlegacysourcemaps)
|
|
85
|
+
- [`bundleSizeOptimizations`](#bundlesizeoptimizations)
|
|
86
|
+
- [`excludeDebugStatements`](#bundlesizeoptimizationsexcludedebugstatements)
|
|
87
|
+
- [`excludeTracing`](#bundlesizeoptimizationsexcludetracing)
|
|
88
|
+
- [`excludeReplayShadowDom`](#bundlesizeoptimizationsexcludereplayshadowdom)
|
|
89
|
+
- [`excludeReplayIframe`](#bundlesizeoptimizationsexcludereplayiframe)
|
|
90
|
+
- [`excludeReplayWorker`](#bundlesizeoptimizationsexcludereplayworker)
|
|
85
91
|
|
|
86
92
|
- [`moduleMetadata`](#modulemetadata)
|
|
87
93
|
- [`applicationKey`](#applicationkey)
|
|
@@ -495,6 +501,56 @@ type IncludeEntry = {
|
|
|
495
501
|
|
|
496
502
|
|
|
497
503
|
|
|
504
|
+
### `bundleSizeOptimizations`
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
Options related to bundle size optimizations. These options will allow you to optimize and reduce the bundle size of the Sentry SDK.
|
|
509
|
+
### `bundleSizeOptimizations.excludeDebugStatements`
|
|
510
|
+
|
|
511
|
+
Type: `boolean`
|
|
512
|
+
|
|
513
|
+
If set to `true`, the plugin will attempt to tree-shake (remove) any debugging code within the Sentry SDK.
|
|
514
|
+
Note that the success of this depends on tree shaking being enabled in your build tooling.
|
|
515
|
+
|
|
516
|
+
Setting this option to `true` will disable features like the SDK's `debug` option.
|
|
517
|
+
|
|
518
|
+
### `bundleSizeOptimizations.excludeTracing`
|
|
519
|
+
|
|
520
|
+
Type: `boolean`
|
|
521
|
+
|
|
522
|
+
If set to `true`, the plugin will attempt to tree-shake (remove) code within the Sentry SDK that is related to tracing and performance monitoring.
|
|
523
|
+
Note that the success of this depends on tree shaking being enabled in your build tooling.
|
|
524
|
+
|
|
525
|
+
**Notice:** Do not enable this when you're using any performance monitoring-related SDK features (e.g. `Sentry.startTransaction()`).
|
|
526
|
+
|
|
527
|
+
### `bundleSizeOptimizations.excludeReplayShadowDom`
|
|
528
|
+
|
|
529
|
+
Type: `boolean`
|
|
530
|
+
|
|
531
|
+
If set to `true`, the plugin will attempt to tree-shake (remove) code related to the Sentry SDK's Session Replay Shadow DOM recording functionality.
|
|
532
|
+
Note that the success of this depends on tree shaking being enabled in your build tooling.
|
|
533
|
+
|
|
534
|
+
This option is safe to be used when you do not want to capture any Shadow DOM activity via Sentry Session Replay.
|
|
535
|
+
|
|
536
|
+
### `bundleSizeOptimizations.excludeReplayIframe`
|
|
537
|
+
|
|
538
|
+
Type: `boolean`
|
|
539
|
+
|
|
540
|
+
If set to `true`, the plugin will attempt to tree-shake (remove) code related to the Sentry SDK's Session Replay `iframe` recording functionality.
|
|
541
|
+
Note that the success of this depends on tree shaking being enabled in your build tooling.
|
|
542
|
+
|
|
543
|
+
You can safely do this when you do not want to capture any `iframe` activity via Sentry Session Replay.
|
|
544
|
+
|
|
545
|
+
### `bundleSizeOptimizations.excludeReplayWorker`
|
|
546
|
+
|
|
547
|
+
Type: `boolean`
|
|
548
|
+
|
|
549
|
+
If set to `true`, the plugin will attempt to tree-shake (remove) code related to the Sentry SDK's Session Replay's Compression Web Worker.
|
|
550
|
+
Note that the success of this depends on tree shaking being enabled in your build tooling.
|
|
551
|
+
|
|
552
|
+
**Notice:** You should only do use this option if you manually host a compression worker and configure it in your Sentry Session Replay integration config via the `workerUrl` option.
|
|
553
|
+
|
|
498
554
|
|
|
499
555
|
### `moduleMetadata`
|
|
500
556
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/esbuild-plugin",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.22.0",
|
|
4
4
|
"description": "Official Sentry esbuild plugin",
|
|
5
5
|
"repository": "git@github.com:getsentry/sentry-javascript-bundler-plugins.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript-bundler-plugins/tree/main/packages/esbuild-plugin",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"prepack": "ts-node ./src/prepack.ts"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@sentry/bundler-plugin-core": "2.
|
|
51
|
+
"@sentry/bundler-plugin-core": "2.22.0",
|
|
52
52
|
"unplugin": "1.0.1",
|
|
53
53
|
"uuid": "^9.0.0"
|
|
54
54
|
},
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"@babel/preset-typescript": "7.17.12",
|
|
59
59
|
"@rollup/plugin-babel": "5.3.1",
|
|
60
60
|
"@rollup/plugin-node-resolve": "13.3.0",
|
|
61
|
-
"@sentry-internal/eslint-config": "2.
|
|
62
|
-
"@sentry-internal/sentry-bundler-plugin-tsconfig": "2.
|
|
61
|
+
"@sentry-internal/eslint-config": "2.22.0",
|
|
62
|
+
"@sentry-internal/sentry-bundler-plugin-tsconfig": "2.22.0",
|
|
63
63
|
"@swc/core": "^1.2.205",
|
|
64
64
|
"@swc/jest": "^0.2.21",
|
|
65
65
|
"@types/jest": "^28.1.3",
|