Skip to content

Commit a0aa887

Browse files
committed
move comments describing types of configs
1 parent 1adc383 commit a0aa887

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

rollup.config.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
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

115
import 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: {

0 commit comments

Comments
 (0)