{"library":"vite-plugin-git-commit-hash","type":"library","category":null,"description":"A Vite plugin that injects the latest Git commit hash as a global `GIT_COMMIT_HASH` variable at build time. Current stable version is 1.0.7, released under MIT license. It is lightweight, has zero runtime dependencies (only peer dependency on Vite >=3), and ships TypeScript declarations. The plugin is ESM and CommonJS compatible. Key differentiator: it provides a simple, declarative way to expose git hash without complex build scripts or environment variables.","language":"javascript","status":"active","version":"1.0.7","tags":["javascript","vite","git","commit-hash","typescript"],"last_verified":"Mon Apr 27","install":[{"cmd":"npm install vite-plugin-git-commit-hash","imports":["import { gitCommitHashPlugin } from 'vite-plugin-git-commit-hash'","console.log(GIT_COMMIT_HASH);  // global variable","declare const GIT_COMMIT_HASH: string;  // in a .d.ts file"]},{"cmd":"yarn add vite-plugin-git-commit-hash","imports":[]},{"cmd":"pnpm add vite-plugin-git-commit-hash","imports":[]}],"homepage":null,"github":"https://github.com/Mocha--/vite-plugin-git-commit-hash","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vite-plugin-git-commit-hash","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}