Skip to content

Commit 0041135

Browse files
committed
fix: Bump size limits and fix E2E test webpack config
- Bump @sentry/react (incl. Tracing) limit from 44 KB to 44.5 KB - Bump @sentry/svelte limit from 25 KB to 25.5 KB - Bump @sentry/sveltekit (client) limit from 42 KB to 42.5 KB - Use EnvironmentPlugin instead of DefinePlugin for more robust env var replacement
1 parent 039e873 commit 0041135

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.size-limit.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ module.exports = [
148148
import: createImport('init', 'ErrorBoundary', 'reactRouterV6BrowserTracingIntegration'),
149149
ignore: ['react/jsx-runtime'],
150150
gzip: true,
151-
limit: '44 KB',
151+
limit: '44.5 KB',
152152
},
153153
// Vue SDK (ESM)
154154
{
@@ -171,7 +171,7 @@ module.exports = [
171171
path: 'packages/svelte/build/esm/index.js',
172172
import: createImport('init'),
173173
gzip: true,
174-
limit: '25 KB',
174+
limit: '25.5 KB',
175175
},
176176
// Browser CDN bundles
177177
{
@@ -243,7 +243,7 @@ module.exports = [
243243
import: createImport('init'),
244244
ignore: ['$app/stores'],
245245
gzip: true,
246-
limit: '42 KB',
246+
limit: '42.5 KB',
247247
},
248248
// Node-Core SDK (ESM)
249249
{

dev-packages/e2e-tests/test-applications/browser-spotlight/build.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ webpack(
1818
minimizer: [new TerserPlugin()],
1919
},
2020
plugins: [
21-
new webpack.DefinePlugin({
22-
// E2E_TEST_DSN can be passed from environment or defaults to empty
23-
'process.env.E2E_TEST_DSN': JSON.stringify(process.env.E2E_TEST_DSN || ''),
21+
// EnvironmentPlugin is more robust for replacing process.env.* references
22+
new webpack.EnvironmentPlugin({
23+
E2E_TEST_DSN: '',
2424
// SENTRY_SPOTLIGHT is hardcoded to point to the Spotlight proxy server on port 3032
2525
// This tests that the SDK correctly parses the env var and sends events to Spotlight
26-
'process.env.SENTRY_SPOTLIGHT': JSON.stringify('http://localhost:3032/stream'),
26+
SENTRY_SPOTLIGHT: 'http://localhost:3032/stream',
2727
}),
2828
new HtmlWebpackPlugin({
2929
template: path.join(__dirname, 'public/index.html'),

dev-packages/e2e-tests/test-applications/browser-spotlight/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"build": "node build.mjs",
1515
"test": "playwright test",
1616
"clean": "npx rimraf node_modules pnpm-lock.yaml",
17-
"test:build": "SENTRY_SPOTLIGHT=http://localhost:3032/stream pnpm install && SENTRY_SPOTLIGHT=http://localhost:3032/stream pnpm build",
17+
"test:build": "pnpm install && pnpm build",
1818
"test:assert": "pnpm test"
1919
},
2020
"devDependencies": {

0 commit comments

Comments
 (0)