Skip to content

Commit

Permalink
fix: Vite CJS Node API deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
defnull committed Jun 6, 2024
1 parent 1d13a93 commit e8a4997
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vite.config.ts → vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e8a4997

Please sign in to comment.