import pkg from './package.json' import { execSync } from 'child_process' const gitVersion = execSync("git describe --tags `git rev-list --tags --max-count=1`").toString() console.log(gitVersion) console.log(`vite.config.js loaded ${JSON.stringify(pkg.version)}`)