Skip to content

Commit aad1cb6

Browse files
committed
Merge remote-tracking branch 'origin/develop' into nh/attributes-ignore-spans
2 parents 2d59315 + 356cfed commit aad1cb6

28 files changed

Lines changed: 1638 additions & 359 deletions

File tree

.size-limit.js

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ module.exports = [
99
import: createImport('init'),
1010
gzip: true,
1111
limit: '27 KB',
12+
disablePlugins: ['@size-limit/esbuild'],
1213
},
1314
{
1415
name: '@sentry/browser - with treeshaking flags',
1516
path: 'packages/browser/build/npm/esm/prod/index.js',
1617
import: createImport('init'),
1718
gzip: true,
1819
limit: '25 KB',
20+
disablePlugins: ['@size-limit/esbuild'],
1921
modifyWebpackConfig: function (config) {
2022
const webpack = require('webpack');
2123

@@ -39,34 +41,39 @@ module.exports = [
3941
import: createImport('init', 'browserTracingIntegration'),
4042
gzip: true,
4143
limit: '45 KB',
44+
disablePlugins: ['@size-limit/esbuild'],
4245
},
4346
{
4447
name: '@sentry/browser (incl. Tracing + Span Streaming)',
4548
path: 'packages/browser/build/npm/esm/prod/index.js',
4649
import: createImport('init', 'browserTracingIntegration', 'spanStreamingIntegration'),
4750
gzip: true,
4851
limit: '48 KB',
52+
disablePlugins: ['@size-limit/esbuild'],
4953
},
5054
{
5155
name: '@sentry/browser (incl. Tracing, Profiling)',
5256
path: 'packages/browser/build/npm/esm/prod/index.js',
5357
import: createImport('init', 'browserTracingIntegration', 'browserProfilingIntegration'),
5458
gzip: true,
5559
limit: '49 KB',
60+
disablePlugins: ['@size-limit/esbuild'],
5661
},
5762
{
5863
name: '@sentry/browser (incl. Tracing, Replay)',
5964
path: 'packages/browser/build/npm/esm/prod/index.js',
6065
import: createImport('init', 'browserTracingIntegration', 'replayIntegration'),
6166
gzip: true,
6267
limit: '84 KB',
68+
disablePlugins: ['@size-limit/esbuild'],
6369
},
6470
{
6571
name: '@sentry/browser (incl. Tracing, Replay) - with treeshaking flags',
6672
path: 'packages/browser/build/npm/esm/prod/index.js',
6773
import: createImport('init', 'browserTracingIntegration', 'replayIntegration'),
6874
gzip: true,
6975
limit: '75 KB',
76+
disablePlugins: ['@size-limit/esbuild'],
7077
modifyWebpackConfig: function (config) {
7178
const webpack = require('webpack');
7279

@@ -90,55 +97,63 @@ module.exports = [
9097
import: createImport('init', 'browserTracingIntegration', 'replayIntegration', 'replayCanvasIntegration'),
9198
gzip: true,
9299
limit: '88 KB',
100+
disablePlugins: ['@size-limit/esbuild'],
93101
},
94102
{
95103
name: '@sentry/browser (incl. Tracing, Replay, Feedback)',
96104
path: 'packages/browser/build/npm/esm/prod/index.js',
97105
import: createImport('init', 'browserTracingIntegration', 'replayIntegration', 'feedbackIntegration'),
98106
gzip: true,
99107
limit: '101 KB',
108+
disablePlugins: ['@size-limit/esbuild'],
100109
},
101110
{
102111
name: '@sentry/browser (incl. Feedback)',
103112
path: 'packages/browser/build/npm/esm/prod/index.js',
104113
import: createImport('init', 'feedbackIntegration'),
105114
gzip: true,
106115
limit: '44 KB',
116+
disablePlugins: ['@size-limit/esbuild'],
107117
},
108118
{
109119
name: '@sentry/browser (incl. sendFeedback)',
110120
path: 'packages/browser/build/npm/esm/prod/index.js',
111121
import: createImport('init', 'sendFeedback'),
112122
gzip: true,
113123
limit: '32 KB',
124+
disablePlugins: ['@size-limit/esbuild'],
114125
},
115126
{
116127
name: '@sentry/browser (incl. FeedbackAsync)',
117128
path: 'packages/browser/build/npm/esm/prod/index.js',
118129
import: createImport('init', 'feedbackAsyncIntegration'),
119130
gzip: true,
120131
limit: '37 KB',
132+
disablePlugins: ['@size-limit/esbuild'],
121133
},
122134
{
123135
name: '@sentry/browser (incl. Metrics)',
124136
path: 'packages/browser/build/npm/esm/prod/index.js',
125137
import: createImport('init', 'metrics'),
126138
gzip: true,
127139
limit: '28 KB',
140+
disablePlugins: ['@size-limit/esbuild'],
128141
},
129142
{
130143
name: '@sentry/browser (incl. Logs)',
131144
path: 'packages/browser/build/npm/esm/prod/index.js',
132145
import: createImport('init', 'logger'),
133146
gzip: true,
134147
limit: '28 KB',
148+
disablePlugins: ['@size-limit/esbuild'],
135149
},
136150
{
137151
name: '@sentry/browser (incl. Metrics & Logs)',
138152
path: 'packages/browser/build/npm/esm/prod/index.js',
139153
import: createImport('init', 'metrics', 'logger'),
140154
gzip: true,
141155
limit: '29 KB',
156+
disablePlugins: ['@size-limit/esbuild'],
142157
},
143158
// React SDK (ESM)
144159
{
@@ -148,6 +163,7 @@ module.exports = [
148163
ignore: ['react/jsx-runtime'],
149164
gzip: true,
150165
limit: '28 KB',
166+
disablePlugins: ['@size-limit/esbuild'],
151167
},
152168
{
153169
name: '@sentry/react (incl. Tracing)',
@@ -156,6 +172,7 @@ module.exports = [
156172
ignore: ['react/jsx-runtime'],
157173
gzip: true,
158174
limit: '47 KB',
175+
disablePlugins: ['@size-limit/esbuild'],
159176
},
160177
// Vue SDK (ESM)
161178
{
@@ -164,13 +181,15 @@ module.exports = [
164181
import: createImport('init'),
165182
gzip: true,
166183
limit: '31 KB',
184+
disablePlugins: ['@size-limit/esbuild'],
167185
},
168186
{
169187
name: '@sentry/vue (incl. Tracing)',
170188
path: 'packages/vue/build/esm/index.js',
171189
import: createImport('init', 'browserTracingIntegration'),
172190
gzip: true,
173191
limit: '46 KB',
192+
disablePlugins: ['@size-limit/esbuild'],
174193
},
175194
// Svelte SDK (ESM)
176195
{
@@ -179,61 +198,71 @@ module.exports = [
179198
import: createImport('init'),
180199
gzip: true,
181200
limit: '27 KB',
201+
disablePlugins: ['@size-limit/esbuild'],
182202
},
183203
// Browser CDN bundles
184204
{
185205
name: 'CDN Bundle',
186206
path: createCDNPath('bundle.min.js'),
187207
gzip: true,
188208
limit: '29 KB',
209+
disablePlugins: ['@size-limit/esbuild'],
189210
},
190211
{
191212
name: 'CDN Bundle (incl. Tracing)',
192213
path: createCDNPath('bundle.tracing.min.js'),
193214
gzip: true,
194215
limit: '46.5 KB',
216+
disablePlugins: ['@size-limit/esbuild'],
195217
},
196218
{
197219
name: 'CDN Bundle (incl. Logs, Metrics)',
198220
path: createCDNPath('bundle.logs.metrics.min.js'),
199221
gzip: true,
200222
limit: '31 KB',
223+
disablePlugins: ['@size-limit/esbuild'],
201224
},
202225
{
203226
name: 'CDN Bundle (incl. Tracing, Logs, Metrics)',
204227
path: createCDNPath('bundle.tracing.logs.metrics.min.js'),
205228
gzip: true,
206229
limit: '47.5 KB',
230+
disablePlugins: ['@size-limit/esbuild'],
207231
},
208232
{
209233
name: 'CDN Bundle (incl. Replay, Logs, Metrics)',
210234
path: createCDNPath('bundle.replay.logs.metrics.min.js'),
211235
gzip: true,
212236
limit: '70 KB',
237+
disablePlugins: ['@size-limit/esbuild'],
213238
},
214239
{
215240
name: 'CDN Bundle (incl. Tracing, Replay)',
216241
path: createCDNPath('bundle.tracing.replay.min.js'),
217242
gzip: true,
218243
limit: '83.5 KB',
244+
disablePlugins: ['@size-limit/esbuild'],
219245
},
220246
{
221247
name: 'CDN Bundle (incl. Tracing, Replay, Logs, Metrics)',
222248
path: createCDNPath('bundle.tracing.replay.logs.metrics.min.js'),
223249
gzip: true,
224250
limit: '84.5 KB',
251+
disablePlugins: ['@size-limit/esbuild'],
225252
},
226253
{
227254
name: 'CDN Bundle (incl. Tracing, Replay, Feedback)',
228255
path: createCDNPath('bundle.tracing.replay.feedback.min.js'),
229256
gzip: true,
230257
limit: '90 KB',
258+
disablePlugins: ['@size-limit/esbuild'],
231259
},
232260
{
233261
name: 'CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics)',
234262
path: createCDNPath('bundle.tracing.replay.feedback.logs.metrics.min.js'),
235263
gzip: true,
236264
limit: '91 KB',
265+
disablePlugins: ['@size-limit/esbuild'],
237266
},
238267
// browser CDN bundles (non-gzipped)
239268
{
@@ -242,62 +271,71 @@ module.exports = [
242271
gzip: false,
243272
brotli: false,
244273
limit: '85 KB',
274+
disablePlugins: ['@size-limit/esbuild'],
245275
},
246276
{
247277
name: 'CDN Bundle (incl. Tracing) - uncompressed',
248278
path: createCDNPath('bundle.tracing.min.js'),
249279
gzip: false,
250280
brotli: false,
251281
limit: '139 KB',
282+
disablePlugins: ['@size-limit/esbuild'],
252283
},
253284
{
254285
name: 'CDN Bundle (incl. Logs, Metrics) - uncompressed',
255286
path: createCDNPath('bundle.logs.metrics.min.js'),
256287
gzip: false,
257288
brotli: false,
258289
limit: '89 KB',
290+
disablePlugins: ['@size-limit/esbuild'],
259291
},
260292
{
261293
name: 'CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed',
262294
path: createCDNPath('bundle.tracing.logs.metrics.min.js'),
263295
gzip: false,
264296
brotli: false,
265297
limit: '142 KB',
298+
disablePlugins: ['@size-limit/esbuild'],
266299
},
267300
{
268301
name: 'CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed',
269302
path: createCDNPath('bundle.replay.logs.metrics.min.js'),
270303
gzip: false,
271304
brotli: false,
272305
limit: '213 KB',
306+
disablePlugins: ['@size-limit/esbuild'],
273307
},
274308
{
275309
name: 'CDN Bundle (incl. Tracing, Replay) - uncompressed',
276310
path: createCDNPath('bundle.tracing.replay.min.js'),
277311
gzip: false,
278312
brotli: false,
279313
limit: '256 KB',
314+
disablePlugins: ['@size-limit/esbuild'],
280315
},
281316
{
282317
name: 'CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed',
283318
path: createCDNPath('bundle.tracing.replay.logs.metrics.min.js'),
284319
gzip: false,
285320
brotli: false,
286321
limit: '260 KB',
322+
disablePlugins: ['@size-limit/esbuild'],
287323
},
288324
{
289325
name: 'CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed',
290326
path: createCDNPath('bundle.tracing.replay.feedback.min.js'),
291327
gzip: false,
292328
brotli: false,
293329
limit: '270 KB',
330+
disablePlugins: ['@size-limit/esbuild'],
294331
},
295332
{
296333
name: 'CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed',
297334
path: createCDNPath('bundle.tracing.replay.feedback.logs.metrics.min.js'),
298335
gzip: false,
299336
brotli: false,
300337
limit: '273 KB',
338+
disablePlugins: ['@size-limit/esbuild'],
301339
},
302340
// Next.js SDK (ESM)
303341
{
@@ -307,6 +345,7 @@ module.exports = [
307345
ignore: ['next/router', 'next/constants'],
308346
gzip: true,
309347
limit: '49 KB',
348+
disablePlugins: ['@size-limit/esbuild'],
310349
},
311350
// SvelteKit SDK (ESM)
312351
{
@@ -316,6 +355,7 @@ module.exports = [
316355
ignore: ['$app/stores'],
317356
gzip: true,
318357
limit: '45 KB',
358+
disablePlugins: ['@size-limit/esbuild'],
319359
},
320360
// Node-Core SDK (ESM)
321361
{
@@ -325,6 +365,7 @@ module.exports = [
325365
ignore: [...builtinModules, ...nodePrefixedBuiltinModules],
326366
gzip: true,
327367
limit: '60 KB',
368+
disablePlugins: ['@size-limit/esbuild'],
328369
},
329370
// Node SDK (ESM)
330371
{
@@ -334,13 +375,15 @@ module.exports = [
334375
ignore: [...builtinModules, ...nodePrefixedBuiltinModules],
335376
gzip: true,
336377
limit: '177 KB',
378+
disablePlugins: ['@size-limit/esbuild'],
337379
},
338380
{
339381
name: '@sentry/node - without tracing',
340382
path: 'packages/node/build/esm/index.js',
341383
import: createImport('initWithoutDefaultIntegrations', 'getDefaultIntegrationsWithoutPerformance'),
342384
gzip: true,
343385
limit: '100 KB',
386+
disablePlugins: ['@size-limit/esbuild'],
344387
ignore: [...builtinModules, ...nodePrefixedBuiltinModules],
345388
modifyWebpackConfig: function (config) {
346389
const webpack = require('webpack');
@@ -364,6 +407,51 @@ module.exports = [
364407
ignore: [...builtinModules, ...nodePrefixedBuiltinModules],
365408
gzip: true,
366409
limit: '117 KB',
410+
disablePlugins: ['@size-limit/esbuild'],
411+
},
412+
// Cloudflare SDK (ESM) - compressed, minified to match `wrangler deploy --dry-run --minify` output
413+
{
414+
name: '@sentry/cloudflare (withSentry) - minified',
415+
path: 'packages/cloudflare/build/esm/index.js',
416+
import: createImport('withSentry', 'instrumentDurableObjectWithSentry', 'instrumentWorkflowWithSentry'),
417+
ignore: [...builtinModules, ...nodePrefixedBuiltinModules],
418+
gzip: false,
419+
brotli: false,
420+
limit: '250 KiB',
421+
disablePlugins: ['@size-limit/webpack'],
422+
webpack: false,
423+
modifyEsbuildConfig: function (config) {
424+
config.keepNames = true;
425+
// Match wrangler's build settings
426+
config.conditions = ['workerd', 'worker', 'browser'];
427+
config.platform = 'browser';
428+
config.format = 'esm';
429+
return config;
430+
},
431+
},
432+
// Cloudflare SDK (ESM) - uncompressed, unminified to match `wrangler deploy --dry-run` output
433+
{
434+
name: '@sentry/cloudflare (withSentry)',
435+
path: 'packages/cloudflare/build/esm/index.js',
436+
import: createImport('withSentry', 'instrumentDurableObjectWithSentry', 'instrumentWorkflowWithSentry'),
437+
ignore: [...builtinModules, ...nodePrefixedBuiltinModules],
438+
gzip: false,
439+
brotli: false,
440+
limit: '420 KiB',
441+
disablePlugins: ['@size-limit/webpack'],
442+
webpack: false,
443+
modifyEsbuildConfig: function (config) {
444+
config.minify = false;
445+
config.minifyIdentifiers = false;
446+
config.minifySyntax = false;
447+
config.minifyWhitespace = false;
448+
config.keepNames = true;
449+
// Match wrangler's build settings
450+
config.conditions = ['workerd', 'worker', 'browser'];
451+
config.platform = 'browser';
452+
config.format = 'esm';
453+
return config;
454+
},
367455
},
368456
];
369457

0 commit comments

Comments
 (0)