@observerkit/vite
v0.6.0
Published
Vite plugin for ObserverKit — injects release and uploads source maps
Downloads
673
Readme
@observerkit/vite
Vite plugin for ObserverKit — injects release info and uploads source maps.
Install
npm install -D @observerkit/viteSetup
Add the plugin to your vite.config.ts:
import observerkit from "@observerkit/vite"
import { defineConfig } from "vite"
export default defineConfig({
plugins: [
observerkit({
projectKey: "ok_proj_...",
}),
],
})Options
| Option | Type | Default | Description |
| --- | --- | --- | --- |
| projectKey | string | required | ObserverKit project key |
| endpoint | string | https://ingest.observerkit.com | Ingest API base URL |
| deleteAfterUpload | boolean | true | Delete .map files from output after upload |
