@greenhat-services/magpie-vite-plugin
v0.1.3
Published
Uploads source maps to Magpie, records the release and its commits, and injects the release into your Vite build.
Maintainers
Readme
@greenhat-services/magpie-vite-plugin
Uploads source maps to Magpie, records the release and its commits, and injects the release into your Vite build.
npm install -D @greenhat-services/magpie-vite-plugin// vite.config.ts
import { magpie } from '@greenhat-services/magpie-vite-plugin';
export default defineConfig({ plugins: [vue(), magpie()] });Build with MAGPIE_DSN and MAGPIE_AUTH_TOKEN (an organisation token with the project:releases scope) set. Without a token the plugin does nothing, so local builds are untouched.
The build also tells Magpie which versions of Vue, Nuxt, Vite and a few other well-known packages the app is built with, so every project's platform is listed in one place. Versions only, read from node_modules; nothing from your configuration or environment is sent. Turn it off with platform: { enabled: false }.
Full documentation, options and what is (and is not) sent: https://github.com/Greenhat-Services/magpie-js#readme
MIT
