File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 11/**
2- * Shared config used by individual packages' Rollup configs. Items here come in three flavors:
3- * - stand-alone: used by `@sentry/browser`, `@sentry/tracing`, and `@sentry/vue` (bundles which are a full SDK in
4- * and of themselves)
5- * - add-on: used by `@sentry/integrations` and `@sentry/wasm` (bundles which need to be combined with a stand-alone
6- * SDK bundle)
7- * - shared: used by both types of bundles
8- *
2+ * Code for generating config used by individual packages' Rollup configs
93 */
104
115import assert from 'assert' ;
@@ -133,6 +127,7 @@ export function makeBaseBundleConfig(options) {
133127
134128 const licensePlugin = makeLicensePlugin ( licenseTitle ) ;
135129
130+ // used by `@sentry/browser`, `@sentry/tracing`, and `@sentry/vue` (bundles which are a full SDK in and of themselves)
136131 const standAloneBundleConfig = {
137132 output : {
138133 format : 'iife' ,
@@ -141,6 +136,7 @@ export function makeBaseBundleConfig(options) {
141136 context : 'window' ,
142137 } ;
143138
139+ // used by `@sentry/integrations` and `@sentry/wasm` (bundles which need to be combined with a stand-alone SDK bundle)
144140 const addOnBundleConfig = {
145141 // These output settings are designed to mimic an IIFE. We don't use Rollup's `iife` format because we don't want to
146142 // attach this code to a new global variable, but rather inject it into the existing SDK's `Integrations` object.
@@ -172,6 +168,7 @@ export function makeBaseBundleConfig(options) {
172168 } ,
173169 } ;
174170
171+ // used by all bundles
175172 const sharedBundleConfig = {
176173 input,
177174 output : {
You can’t perform that action at this time.
0 commit comments