You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* automatically generate and upload source maps to Sentry during a production build.
7
8
*
8
9
* @default true
10
+
* @deprecated Use `sourcemaps.disable` option instead of `sourceMapsUploadOptions.enabled`.
9
11
*/
10
12
enabled?: boolean;
11
13
@@ -16,14 +18,19 @@ type SourceMapsOptions = {
16
18
* @default [] - By default no files are deleted.
17
19
*
18
20
* The globbing patterns follow the implementation of the glob package. (https://www.npmjs.com/package/glob)
21
+
*
22
+
* @deprecated Use `sourcemaps.filesToDeleteAfterUpload` option instead of `sourceMapsUploadOptions.filesToDeleteAfterUpload`.
19
23
*/
20
24
filesToDeleteAfterUpload?: string|Array<string>;
21
25
22
26
/**
23
27
* Options related to managing the Sentry releases for a build.
24
28
*
25
29
* More info: https://docs.sentry.io/product/releases/
30
+
*
31
+
* @deprecated Use the `release` option at the root of `SentryVitePluginOptions` instead.
26
32
*/
33
+
// todo(v11): Remove this option (currently it's not in use either, but it's kept to not cause a breaking change)
27
34
release?: {
28
35
/**
29
36
* Unique identifier for the release you want to create.
@@ -40,136 +47,31 @@ type SourceMapsOptions = {
40
47
};
41
48
};
42
49
43
-
typeBundleSizeOptimizationOptions={
44
-
/**
45
-
* If set to `true`, the plugin will attempt to tree-shake (remove) any debugging code within the Sentry SDK.
46
-
* Note that the success of this depends on tree shaking being enabled in your build tooling.
47
-
*
48
-
* Setting this option to `true` will disable features like the SDK's `debug` option.
49
-
*/
50
-
excludeDebugStatements?: boolean;
51
-
52
-
/**
53
-
* If set to true, the plugin will try to tree-shake tracing statements out.
54
-
* Note that the success of this depends on tree shaking generally being enabled in your build.
55
-
* Attention: DO NOT enable this when you're using any performance monitoring-related SDK features (e.g. Sentry.startSpan()).
56
-
*/
57
-
excludeTracing?: boolean;
58
-
59
-
/**
60
-
* 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.
61
-
* Note that the success of this depends on tree shaking being enabled in your build tooling.
62
-
*
63
-
* This option is safe to be used when you do not want to capture any Shadow DOM activity via Sentry Session Replay.
64
-
*/
65
-
excludeReplayShadowDom?: boolean;
66
-
67
-
/**
68
-
* If set to `true`, the plugin will attempt to tree-shake (remove) code related to the Sentry SDK's Session Replay `iframe` recording functionality.
69
-
* Note that the success of this depends on tree shaking being enabled in your build tooling.
70
-
*
71
-
* You can safely do this when you do not want to capture any `iframe` activity via Sentry Session Replay.
72
-
*/
73
-
excludeReplayIframe?: boolean;
74
-
75
-
/**
76
-
* 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.
77
-
* Note that the success of this depends on tree shaking being enabled in your build tooling.
78
-
*
79
-
* **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.
80
-
*/
81
-
excludeReplayWorker?: boolean;
82
-
};
83
-
84
-
exporttypeSentryReactRouterBuildOptions={
85
-
/**
86
-
* Options for configuring the Sentry release.
87
-
*/
88
-
release?: {
89
-
/**
90
-
* The name of the release to create in Sentry
91
-
*/
92
-
name?: string;
93
-
};
94
-
95
-
/**
96
-
* The auth token to use when uploading source maps to Sentry.
97
-
*
98
-
* Instead of specifying this option, you can also set the `SENTRY_AUTH_TOKEN` environment variable.
* If this flag is `true`, Sentry will log debug information during build time.
124
-
* @default false.
125
-
*/
126
-
debug?: boolean;
127
-
128
-
/**
129
-
* Options related to react component name annotations.
130
-
* Disabled by default, unless a value is set for this option.
131
-
* When enabled, your app's DOM will automatically be annotated during build-time with their respective component names.
132
-
* This will unlock the capability to search for Replays in Sentry by component name, as well as see component names in breadcrumbs and performance monitoring.
133
-
* Please note that this feature is not currently supported by the esbuild bundler plugins, and will only annotate React components
* Whether the component name annotate plugin should be enabled or not.
53
+
* Options related to react component name annotations.
54
+
* Disabled by default, unless a value is set for this option.
55
+
* When enabled, your app's DOM will automatically be annotated during build-time with their respective component names.
56
+
* This will unlock the capability to search for Replays in Sentry by component name, as well as see component names in breadcrumbs and performance monitoring.
57
+
* Please note that this feature is not currently supported by the esbuild bundler plugins, and will only annotate React components
138
58
*/
139
-
enabled?: boolean;
59
+
reactComponentAnnotation?: {
60
+
/**
61
+
* Whether the component name annotate plugin should be enabled or not.
62
+
*/
63
+
enabled?: boolean;
64
+
65
+
/**
66
+
* A list of strings representing the names of components to ignore. The plugin will not apply `data-sentry` annotations on the DOM element for these components.
67
+
*/
68
+
ignoredComponents?: string[];
69
+
};
140
70
141
71
/**
142
-
* A list of strings representing the names of components to ignore. The plugin will not apply `data-sentry` annotations on the DOM element for these components.
72
+
* Options for the Sentry Vite plugin to customize the source maps upload process.
73
+
*
143
74
*/
144
-
ignoredComponents?: string[];
75
+
sourceMapsUploadOptions?: SourceMapsOptions;
76
+
// todo(v11): Remove this option (all options already exist in BuildTimeOptionsBase)
145
77
};
146
-
147
-
/**
148
-
* Options for the Sentry Vite plugin to customize the source maps upload process.
149
-
*
150
-
*/
151
-
sourceMapsUploadOptions?: SourceMapsOptions;
152
-
153
-
/**
154
-
* If this flag is `true`, the Sentry plugin will collect some telemetry data and send it to Sentry.
155
-
* It will not collect any sensitive or user-specific data.
156
-
*
157
-
* @default true
158
-
*/
159
-
telemetry?: boolean;
160
-
161
-
/**
162
-
* Options to further customize the Sentry Vite Plugin (@sentry/vite-plugin) behavior directly.
163
-
* Options specified in this object take precedence over the options specified in
164
-
* the `sourcemaps` and `release` objects.
165
-
*
166
-
* @see https://www.npmjs.com/package/@sentry/vite-plugin/v/2.22.2#options which lists all available options.
167
-
*
168
-
* Warning: Options within this object are subject to change at any time.
169
-
* We DO NOT guarantee semantic versioning for these options, meaning breaking
170
-
* changes can occur at any time within a major SDK version.
171
-
*
172
-
* Furthermore, some options are untested with SvelteKit specifically. Use with caution.
0 commit comments