We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f9d438 commit ba2aec7Copy full SHA for ba2aec7
dev-packages/e2e-tests/test-applications/browser-spotlight/vite.config.js
@@ -11,6 +11,14 @@ export default defineConfig({
11
preview: {
12
port: 3030,
13
},
14
+ resolve: {
15
+ // Use 'development' condition to resolve SDK packages to their dev builds
16
+ // This is necessary because Spotlight integration code is stripped from production builds
17
+ // The @sentry/browser package exports different builds via conditional exports:
18
+ // - production (default): Spotlight code stripped
19
+ // - development: Spotlight code included
20
+ conditions: ['development'],
21
+ },
22
define: {
23
// Define env vars for the E2E test
24
// VITE_SENTRY_SPOTLIGHT is read automatically by @sentry/react via import.meta.env
0 commit comments