import vue from '@vitejs/plugin-vue'
import { execaSync } from 'execa'
-const commit = execaSync('git', ['rev-parse', 'HEAD']).stdout.slice(0, 7)
+const commit = execaSync('git', ['rev-parse', '--short=7', 'HEAD']).stdout
export default defineConfig({
plugins: [
const isRelease = args.release
const buildAllMatching = args.all || args.a
const writeSize = args.size
-const commit = execaSync('git', ['rev-parse', 'HEAD']).stdout.slice(0, 7)
+const commit = execaSync('git', ['rev-parse', '--short=7', 'HEAD']).stdout
const sizeDir = path.resolve('temp/size')