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.