Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
@flareapp/vite-plugin-sourcemap-uploader
Advanced tools
The Flare Vite plugin helps you send sourcemaps of your compiled JavaScript code to Flare. This way, reports sent using the `@flareapp/flare-client` will be formatted correctly.
The Flare Vite plugin helps you send sourcemaps of your compiled JavaScript code to Flare. This way, reports sent using the @flareapp/flare-client
will be formatted correctly.
Additionally, it automatically passes the Flare API key to @flareapp/flare-client
. This way, flare.light()
works without any additional configuration.
Check the JavaScript error tracking section in the Flare documentation for more information.
Looking for the Flare client? Go to the @flareapp/flare-client repo.
Install the plugin using NPM or Yarn:
yarn add --dev @flareapp/vite-plugin-sourcemap-uploader
# or
npm install --save-dev @flareapp/vite-plugin-sourcemap-uploader
Next, add the plugin to your vite.config.js
file:
import { defineConfig } from 'vite';
import FlareSourcemapUploader from './flare';
export default defineConfig({
plugins: [
FlareSourcemapUploader({
key: 'YOUR API KEY HERE'
}),
],
});
Run the vite build
command to make sure the sourcemaps are generated. You should see the following lines in the output:
@flareapp/flare-vite-plugin-sourcemaps: Uploading 12 sourcemap files to Flare.
@flareapp/flare-vite-plugin-sourcemaps: Successfully uploaded sourcemaps to Flare.
key: string
(required): the Flare API keybase: string
: the base path of built output (defaults to Vite's base path)runInDevelopment: boolean
: whether to upload sourcemaps when NODE_ENV=development
or when running the dev server (defaults to false
)version: string
: the sourcemap version (defaults to a fresh uuid
per build)removeSourcemaps: boolean
: whether to remove the sourcemaps after uploading them (defaults to false
). Comes in handy when you want to upload sourcemaps to Flare but don't want them published in your build.FAQs
The Flare Vite plugin helps you send sourcemaps of your compiled JavaScript code to Flare. This way, reports sent using the `@flareapp/flare-client` will be formatted correctly.
The npm package @flareapp/vite-plugin-sourcemap-uploader receives a total of 720 weekly downloads. As such, @flareapp/vite-plugin-sourcemap-uploader popularity was classified as not popular.
We found that @flareapp/vite-plugin-sourcemap-uploader demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.