library · inferred from evidence
@braze/web-sdk
A JavaScript SDK provided by Braze for web applications, which exhibits circular dependency warnings when used with Vite/Rollup.
- Braze web SDK unusable without 'unsafe-eval' Content Security Policy
Teaches the verified fix from a real braze support thread: braze web SDK unusable without 'unsafe-eval' Content Security Policy
- Circular dependency warnings from @braze/web-sdk with Vite / Rollup
Exclude the SDK from Vite's dev-server dependency optimization so it is loaded as-is instead of being pre-bundled: add `@braze/web-sdk` to `optimizeDeps.exclude` in vite.config (e.g. `optimizeDeps: { exclude: ['@braze/web-sdk'] }`).