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 1
1
/**
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
9
3
*/
10
4
11
5
import assert from 'assert' ;
@@ -133,6 +127,7 @@ export function makeBaseBundleConfig(options) {
133
127
134
128
const licensePlugin = makeLicensePlugin ( licenseTitle ) ;
135
129
130
+ // used by `@sentry/browser`, `@sentry/tracing`, and `@sentry/vue` (bundles which are a full SDK in and of themselves)
136
131
const standAloneBundleConfig = {
137
132
output : {
138
133
format : 'iife' ,
@@ -141,6 +136,7 @@ export function makeBaseBundleConfig(options) {
141
136
context : 'window' ,
142
137
} ;
143
138
139
+ // used by `@sentry/integrations` and `@sentry/wasm` (bundles which need to be combined with a stand-alone SDK bundle)
144
140
const addOnBundleConfig = {
145
141
// These output settings are designed to mimic an IIFE. We don't use Rollup's `iife` format because we don't want to
146
142
// 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) {
172
168
} ,
173
169
} ;
174
170
171
+ // used by all bundles
175
172
const sharedBundleConfig = {
176
173
input,
177
174
output : {
You can’t perform that action at this time.
0 commit comments