@thomas-adam-leigh/elenjical-vite-plugin
v0.3.0
Published
Uploads source maps and records releases in Elenjical from a Vite build.
Maintainers
Readme
@elenjical/vite-plugin
Uploads your build's source maps to Elenjical, so stack traces show your original code, and records the release.
Install
npm install --save-dev @elenjical/vite-plugin@npm:@thomas-adam-leigh/elenjical-vite-plugin@^0.3.0Set up
// vite.config.ts
import { elenjicalVitePlugin } from "@elenjical/vite-plugin";
export default defineConfig({
build: { sourcemap: "hidden" },
plugins: [
react(),
elenjicalVitePlugin({ sourcemaps: { filesToDeleteAfterUpload: ["./dist/**/*.map"] } }),
],
});In the build environment (CI), set:
| Variable | Meaning |
| ------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------- |
| ELENJICAL_AUTH_TOKEN | an organization token (Elenjical > Organization Settings > Tokens). Without it the plugin does nothing, so local builds need no setup. |
| ELENJICAL_ORG, ELENJICAL_PROJECT | the organization and project slugs |
| ELENJICAL_URL | your Elenjical server; if unset, the server your ELENJICAL_DSN / VITE_ELENJICAL_DSN points at |
| ELENJICAL_RELEASE | the release name, matching the SDK's release option |
Every option can be passed directly instead. Nothing is uploaded anywhere but your Elenjical server.
See NOTICE for the open-source software this package is built on.
