@@ -8,6 +8,10 @@ if (targets.some(target => target !== 'es5' && target !== 'es6')) {
88 throw new Error ( 'JS_VERSION must be either "es5" or "es6"' ) ;
99}
1010
11+ const addonIntegrationFiles = [ 'contextlines' , 'httpclient' , 'reportingobserver' ] ;
12+
13+ const coreIntegrationFiles = [ 'captureconsole' , 'debug' , 'dedupe' , 'extraerrordata' , 'rewriteframes' , 'sessiontiming' ] ;
14+
1115targets . forEach ( jsVersion => {
1216 const baseBundleConfig = makeBaseBundleConfig ( {
1317 bundleType : 'standalone' ,
@@ -25,6 +29,30 @@ targets.forEach(jsVersion => {
2529 outputFileBase : ( ) => `bundles/bundle.tracing${ jsVersion === 'es5' ? '.es5' : '' } ` ,
2630 } ) ;
2731
32+ addonIntegrationFiles . forEach ( integrationName => {
33+ const integrationsBundleConfig = makeBaseBundleConfig ( {
34+ bundleType : 'addon' ,
35+ entrypoints : [ `src/integrations/${ integrationName } .ts` ] ,
36+ jsVersion,
37+ licenseTitle : `@sentry/browser - ${ integrationName } ` ,
38+ outputFileBase : ( ) => `bundles/${ integrationName } ${ jsVersion === 'es5' ? '.es5' : '' } ` ,
39+ } ) ;
40+
41+ builds . push ( ...makeBundleConfigVariants ( integrationsBundleConfig ) ) ;
42+ } ) ;
43+
44+ coreIntegrationFiles . forEach ( integrationName => {
45+ const integrationsBundleConfig = makeBaseBundleConfig ( {
46+ bundleType : 'addon' ,
47+ entrypoints : [ `src/integrations-bundle/index.${ integrationName } .ts` ] ,
48+ jsVersion,
49+ licenseTitle : `@sentry/browser - ${ integrationName } ` ,
50+ outputFileBase : ( ) => `bundles/${ integrationName } ${ jsVersion === 'es5' ? '.es5' : '' } ` ,
51+ } ) ;
52+
53+ builds . push ( ...makeBundleConfigVariants ( integrationsBundleConfig ) ) ;
54+ } ) ;
55+
2856 builds . push ( ...makeBundleConfigVariants ( baseBundleConfig ) , ...makeBundleConfigVariants ( tracingBaseBundleConfig ) ) ;
2957} ) ;
3058
0 commit comments