From e8a49976880671b2892f002769878a957d20a4b1 Mon Sep 17 00:00:00 2001 From: Marcel Hellkamp Date: Thu, 6 Jun 2024 14:22:21 +0200 Subject: [PATCH] fix: Vite CJS Node API deprecated --- vite.config.ts => vite.config.mts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename vite.config.ts => vite.config.mts (90%) diff --git a/vite.config.ts b/vite.config.mts similarity index 90% rename from vite.config.ts rename to vite.config.mts index a85692e..83427ae 100644 --- a/vite.config.ts +++ b/vite.config.mts @@ -3,13 +3,13 @@ import { fileURLToPath, URL } from "node:url"; import { defineConfig } from "vite"; import vue from "@vitejs/plugin-vue"; import viteCompression from "vite-plugin-compression"; -import { gitDescribeSync } from "git-describe"; +import gitDescribe from "git-describe"; import viteLegacy from "@vitejs/plugin-legacy"; let version; try { - const gitInfo = gitDescribeSync(); + const gitInfo = gitDescribe.gitDescribeSync(); if (gitInfo.tag) { version = `${gitInfo.tag}`; if (gitInfo.distance)