Flare by Spatie
    • Error Tracking
    • Performance Monitoring
    • Logs Coming soon
  • Pricing
  • Docs
  • Insights
  • Changelog
  • Back to Flare ⌘↵ Shortcut: Command or Control Enter
  • Sign in
  • Try Flare for free
  • Error Tracking
  • Performance Monitoring
  • Logs Coming soon
  • Pricing
  • Docs
  • Insights
  • Changelog
    • Back to Flare ⌘↵ Shortcut: Command or Control Enter
    • Try Flare for free
    • Sign in
Flare Flare Laravel Laravel PHP PHP JavaScript JavaScript React React Vue Vue Svelte Svelte Protocol Protocol
  • General
  • Installation
  • Resolving bundled code
  • API reference
  • Errors
  • Error boundary
  • Error handler
  • SvelteKit error handling
  • Reporting errors
  • Client hooks
  • Data Collection
  • Adding custom context
  • Adding glows

Resolving bundled code

When you bundle your frontend code for production (using Webpack, Vite, …), it will get minified and transformed and ultimately won't look like the original code anymore. This means the stack traces and code snippets attached to error reports won't be readable.

Flare can resolve the original source code using sourcemaps. If you're using Vite or Webpack, the @flareapp/vite (or Webpack) plugin handles this automatically — uploading sourcemaps during your build and connecting them to your project.

The Svelte integration uses the same sourcemap plugins as the core JavaScript client. Head over to the JavaScript resolving bundled code documentation for full setup instructions for Vite, Webpack, and manual uploads.

If you're using the sourcemap plugin, you don't need to specify a project public key in your flare.light() call. The plugin will automatically hook it up to your project.

SvelteKit note: Server-side source files are not yet supported for sourcemap resolution. Server error stack traces will reference the bundled code. Client-side sourcemaps work as expected.

Installation API reference

Catch errors and fix slowdowns with Flare, the full-stack application monitoring platform for Laravel, PHP & JavaScript.

  • Platform
  • Error Tracking
  • Performance Monitoring
  • Pricing
  • Support
  • Resources
  • Insights
  • Newsletter
  • Changelog
  • Documentation
  • Affiliate program
  • uptime status badge Service status
  • Terms of use
  • DPA
  • Privacy & cookie Policy
Made in by
Flare