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
This PR deprecates the webpack-only configurations via the `@deprecated`
JSDoc annotation and introduces a new `webpack` config namespace for
them.
Under the hood the logic was changed to read from the new values, with a
compatibility layer that sets them from the deprecated top-level options
while warning for each option if used.
This should set us up for a v11/v12 deletion of those options.
I might have missed a few options that only affect webpack, so I
appreciate a good look at this. At any case this isn't breaking so even
if missed a few, users won't experience disruptions.
* Options related to react component name annotations.
127
+
* Disabled by default, unless a value is set for this option.
128
+
* When enabled, your app's DOM will automatically be annotated during build-time with their respective component names.
129
+
* 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.
130
+
* Please note that this feature is not currently supported by the esbuild bundler plugins, and will only annotate React components
131
+
*/
132
+
reactComponentAnnotation?: {
133
+
/**
134
+
* Whether the component name annotate plugin should be enabled or not.
135
+
*/
136
+
enabled?: boolean;
137
+
138
+
/**
139
+
* 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.
140
+
*/
141
+
ignoredComponents?: string[];
142
+
};
143
+
};
144
+
60
145
exporttypeSentryBuildOptions={
61
146
/**
62
147
* The slug of the Sentry organization associated with the app.
@@ -363,6 +448,8 @@ export type SentryBuildOptions = {
363
448
* When enabled, your app's DOM will automatically be annotated during build-time with their respective component names.
364
449
* 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.
365
450
* Please note that this feature is not currently supported by the esbuild bundler plugins, and will only annotate React components
451
+
*
452
+
* @deprecated Use `webpack.reactComponentAnnotation` instead.
366
453
*/
367
454
reactComponentAnnotation?: {
368
455
/**
@@ -381,6 +468,7 @@ export type SentryBuildOptions = {
381
468
* You can use this option to override any options the SDK passes to the webpack plugin.
382
469
*
383
470
* Please note that this option is unstable and may change in a breaking way in any release.
471
+
* @deprecated Use `webpack.unstable_sentryWebpackPluginOptions` instead.
// It is very important that we insert our loaders at the beginning of the array because we expect any sort of transformations/transpilations (e.g. TS -> JS) to already have happened.
225
225
226
226
// Wrap pages
@@ -239,7 +239,7 @@ export function constructWebpackConfigFunction({
0 commit comments