@flareapp/vite-plugin-sourcemap-uploader
Version:
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.
16 lines (15 loc) • 459 B
TypeScript
import { Plugin } from 'vite';
export type PluginConfig = {
key: string;
base?: string;
apiEndpoint?: string;
runInDevelopment?: boolean;
version?: string;
removeSourcemaps?: boolean;
};
export type Sourcemap = {
original_file: string;
content: string;
sourcemap_url: string;
};
export default function flareSourcemapUploader({ key, base, apiEndpoint, runInDevelopment, version, removeSourcemaps, }: PluginConfig): Plugin;