Flare by Spatie
    • Error Tracking
    • Performance Monitoring
    • Logging Coming soon
  • Pricing
  • Docs
  • Insights
  • Changelog
  • Back to Flare ⌘↵ Shortcut: Command or Control Enter
  • Sign in
  • Try Flare for free
  • Error Tracking
  • Performance Monitoring
  • Logging 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 Protocol Protocol
  • General
  • Installation
  • Resolving bundled code
  • API reference
  • Errors
  • Error boundary
  • 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 Vue 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, Laravel Mix, 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.

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