@@ -22,31 +22,35 @@ const reexportedPluggableIntegrationFiles = [
2222] ;
2323
2424browserPluggableIntegrationFiles . forEach ( integrationName => {
25- const integrationsBundleConfig = makeBaseBundleConfig ( {
26- bundleType : 'addon' ,
27- entrypoints : [ `src/integrations/${ integrationName } .ts` ] ,
28- licenseTitle : `@sentry/browser - ${ integrationName } ` ,
29- outputFileBase : ( ) => `bundles/${ integrationName } ` ,
30- } ) ;
31-
32- builds . push ( ...makeBundleConfigVariants ( integrationsBundleConfig ) ) ;
25+ builds . push (
26+ ...makeBundleConfigVariants ( ( ) =>
27+ makeBaseBundleConfig ( {
28+ bundleType : 'addon' ,
29+ entrypoints : [ `src/integrations/${ integrationName } .ts` ] ,
30+ licenseTitle : `@sentry/browser - ${ integrationName } ` ,
31+ outputFileBase : ( ) => `bundles/${ integrationName } ` ,
32+ } ) ,
33+ ) ,
34+ ) ;
3335} ) ;
3436
3537reexportedPluggableIntegrationFiles . forEach ( integrationName => {
36- const integrationsBundleConfig = makeBaseBundleConfig ( {
37- bundleType : 'addon' ,
38- entrypoints : [ `src/integrations-bundle/index.${ integrationName } .ts` ] ,
39- licenseTitle : `@sentry/browser - ${ integrationName } ` ,
40- outputFileBase : ( ) => `bundles/${ integrationName } ` ,
41- } ) ;
42-
43- builds . push ( ...makeBundleConfigVariants ( integrationsBundleConfig ) ) ;
38+ builds . push (
39+ ...makeBundleConfigVariants ( ( ) =>
40+ makeBaseBundleConfig ( {
41+ bundleType : 'addon' ,
42+ entrypoints : [ `src/integrations-bundle/index.${ integrationName } .ts` ] ,
43+ licenseTitle : `@sentry/browser - ${ integrationName } ` ,
44+ outputFileBase : ( ) => `bundles/${ integrationName } ` ,
45+ } ) ,
46+ ) ,
47+ ) ;
4448} ) ;
4549
4650// Bundle config for additional exports we don't want to include in the main SDK bundle
4751// if we need more of these, we can generalize the config as for pluggable integrations
4852builds . push (
49- ...makeBundleConfigVariants (
53+ ...makeBundleConfigVariants ( ( ) =>
5054 makeBaseBundleConfig ( {
5155 bundleType : 'addon' ,
5256 entrypoints : [ 'src/pluggable-exports-bundle/index.multiplexedtransport.ts' ] ,
@@ -56,104 +60,104 @@ builds.push(
5660 ) ,
5761) ;
5862
59- const baseBundleConfig = makeBaseBundleConfig ( {
63+ const baseBundleOptions = {
6064 bundleType : 'standalone' ,
6165 entrypoints : [ 'src/index.bundle.ts' ] ,
6266 licenseTitle : '@sentry/browser' ,
6367 outputFileBase : ( ) => 'bundles/bundle' ,
64- } ) ;
68+ } ;
6569
66- const feedbackBaseBundleConfig = makeBaseBundleConfig ( {
70+ const feedbackBaseBundleOptions = {
6771 bundleType : 'standalone' ,
6872 entrypoints : [ 'src/index.bundle.feedback.ts' ] ,
6973 licenseTitle : '@sentry/browser & @sentry/feedback' ,
7074 outputFileBase : ( ) => 'bundles/bundle.feedback' ,
71- } ) ;
75+ } ;
7276
73- const logsMetricsBaseBundleConfig = makeBaseBundleConfig ( {
77+ const logsMetricsBaseBundleOptions = {
7478 bundleType : 'standalone' ,
7579 entrypoints : [ 'src/index.bundle.logs.metrics.ts' ] ,
7680 licenseTitle : '@sentry/browser (Logs and Metrics)' ,
7781 outputFileBase : ( ) => 'bundles/bundle.logs.metrics' ,
78- } ) ;
82+ } ;
7983
80- const replayBaseBundleConfig = makeBaseBundleConfig ( {
84+ const replayBaseBundleOptions = {
8185 bundleType : 'standalone' ,
8286 entrypoints : [ 'src/index.bundle.replay.ts' ] ,
8387 licenseTitle : '@sentry/browser (Replay)' ,
8488 outputFileBase : ( ) => 'bundles/bundle.replay' ,
85- } ) ;
89+ } ;
8690
87- const replayFeedbackBaseBundleConfig = makeBaseBundleConfig ( {
91+ const replayFeedbackBaseBundleOptions = {
8892 bundleType : 'standalone' ,
8993 entrypoints : [ 'src/index.bundle.replay.feedback.ts' ] ,
9094 licenseTitle : '@sentry/browser (Replay, and Feedback)' ,
9195 outputFileBase : ( ) => 'bundles/bundle.replay.feedback' ,
92- } ) ;
96+ } ;
9397
94- const replayLogsMetricsBaseBundleConfig = makeBaseBundleConfig ( {
98+ const replayLogsMetricsBaseBundleOptions = {
9599 bundleType : 'standalone' ,
96100 entrypoints : [ 'src/index.bundle.replay.logs.metrics.ts' ] ,
97101 licenseTitle : '@sentry/browser (Replay, Logs, and Metrics)' ,
98102 outputFileBase : ( ) => 'bundles/bundle.replay.logs.metrics' ,
99- } ) ;
103+ } ;
100104
101105// Tracing
102- const tracingBaseBundleConfig = makeBaseBundleConfig ( {
106+ const tracingBaseBundleOptions = {
103107 bundleType : 'standalone' ,
104108 entrypoints : [ 'src/index.bundle.tracing.ts' ] ,
105109 licenseTitle : '@sentry/browser (Performance Monitoring)' ,
106110 outputFileBase : ( ) => 'bundles/bundle.tracing' ,
107- } ) ;
111+ } ;
108112
109- const tracingLogsMetricsBaseBundleConfig = makeBaseBundleConfig ( {
113+ const tracingLogsMetricsBaseBundleOptions = {
110114 bundleType : 'standalone' ,
111115 entrypoints : [ 'src/index.bundle.tracing.logs.metrics.ts' ] ,
112116 licenseTitle : '@sentry/browser (Performance Monitoring, Logs, and Metrics)' ,
113117 outputFileBase : ( ) => 'bundles/bundle.tracing.logs.metrics' ,
114- } ) ;
118+ } ;
115119
116- const tracingReplayBaseBundleConfig = makeBaseBundleConfig ( {
120+ const tracingReplayBaseBundleOptions = {
117121 bundleType : 'standalone' ,
118122 entrypoints : [ 'src/index.bundle.tracing.replay.ts' ] ,
119123 licenseTitle : '@sentry/browser (Performance Monitoring and Replay)' ,
120124 outputFileBase : ( ) => 'bundles/bundle.tracing.replay' ,
121- } ) ;
125+ } ;
122126
123- const tracingReplayLogsMetricsBaseBundleConfig = makeBaseBundleConfig ( {
127+ const tracingReplayLogsMetricsBaseBundleOptions = {
124128 bundleType : 'standalone' ,
125129 entrypoints : [ 'src/index.bundle.tracing.replay.logs.metrics.ts' ] ,
126130 licenseTitle : '@sentry/browser (Performance Monitoring, Replay, Logs, and Metrics)' ,
127131 outputFileBase : ( ) => 'bundles/bundle.tracing.replay.logs.metrics' ,
128- } ) ;
132+ } ;
129133
130- const tracingReplayFeedbackBaseBundleConfig = makeBaseBundleConfig ( {
134+ const tracingReplayFeedbackBaseBundleOptions = {
131135 bundleType : 'standalone' ,
132136 entrypoints : [ 'src/index.bundle.tracing.replay.feedback.ts' ] ,
133137 licenseTitle : '@sentry/browser (Performance Monitoring, Replay, and Feedback)' ,
134138 outputFileBase : ( ) => 'bundles/bundle.tracing.replay.feedback' ,
135- } ) ;
139+ } ;
136140
137- const tracingReplayFeedbackLogsMetricsBaseBundleConfig = makeBaseBundleConfig ( {
141+ const tracingReplayFeedbackLogsMetricsBaseBundleOptions = {
138142 bundleType : 'standalone' ,
139143 entrypoints : [ 'src/index.bundle.tracing.replay.feedback.logs.metrics.ts' ] ,
140144 licenseTitle : '@sentry/browser (Performance Monitoring, Replay, Feedback, Logs, and Metrics)' ,
141145 outputFileBase : ( ) => 'bundles/bundle.tracing.replay.feedback.logs.metrics' ,
142- } ) ;
146+ } ;
143147
144148builds . push (
145- ...makeBundleConfigVariants ( baseBundleConfig ) ,
146- ...makeBundleConfigVariants ( feedbackBaseBundleConfig ) ,
147- ...makeBundleConfigVariants ( logsMetricsBaseBundleConfig ) ,
148- ...makeBundleConfigVariants ( replayBaseBundleConfig ) ,
149- ...makeBundleConfigVariants ( replayFeedbackBaseBundleConfig ) ,
150- ...makeBundleConfigVariants ( replayLogsMetricsBaseBundleConfig ) ,
151- ...makeBundleConfigVariants ( tracingBaseBundleConfig ) ,
152- ...makeBundleConfigVariants ( tracingLogsMetricsBaseBundleConfig ) ,
153- ...makeBundleConfigVariants ( tracingReplayBaseBundleConfig ) ,
154- ...makeBundleConfigVariants ( tracingReplayLogsMetricsBaseBundleConfig ) ,
155- ...makeBundleConfigVariants ( tracingReplayFeedbackBaseBundleConfig ) ,
156- ...makeBundleConfigVariants ( tracingReplayFeedbackLogsMetricsBaseBundleConfig ) ,
149+ ...makeBundleConfigVariants ( ( ) => makeBaseBundleConfig ( baseBundleOptions ) ) ,
150+ ...makeBundleConfigVariants ( ( ) => makeBaseBundleConfig ( feedbackBaseBundleOptions ) ) ,
151+ ...makeBundleConfigVariants ( ( ) => makeBaseBundleConfig ( logsMetricsBaseBundleOptions ) ) ,
152+ ...makeBundleConfigVariants ( ( ) => makeBaseBundleConfig ( replayBaseBundleOptions ) ) ,
153+ ...makeBundleConfigVariants ( ( ) => makeBaseBundleConfig ( replayFeedbackBaseBundleOptions ) ) ,
154+ ...makeBundleConfigVariants ( ( ) => makeBaseBundleConfig ( replayLogsMetricsBaseBundleOptions ) ) ,
155+ ...makeBundleConfigVariants ( ( ) => makeBaseBundleConfig ( tracingBaseBundleOptions ) ) ,
156+ ...makeBundleConfigVariants ( ( ) => makeBaseBundleConfig ( tracingLogsMetricsBaseBundleOptions ) ) ,
157+ ...makeBundleConfigVariants ( ( ) => makeBaseBundleConfig ( tracingReplayBaseBundleOptions ) ) ,
158+ ...makeBundleConfigVariants ( ( ) => makeBaseBundleConfig ( tracingReplayLogsMetricsBaseBundleOptions ) ) ,
159+ ...makeBundleConfigVariants ( ( ) => makeBaseBundleConfig ( tracingReplayFeedbackBaseBundleOptions ) ) ,
160+ ...makeBundleConfigVariants ( ( ) => makeBaseBundleConfig ( tracingReplayFeedbackLogsMetricsBaseBundleOptions ) ) ,
157161) ;
158162
159163export default builds ;
0 commit comments