From 3f1d5ae6236025fd14e3e27ccc6fa3a66d3060ff Mon Sep 17 00:00:00 2001 From: LASER-Yi Date: Tue, 29 Mar 2022 00:46:55 +0800 Subject: [PATCH] no log: Fix type issues in the vite config builder --- frontend/config/configReader.ts | 2 ++ frontend/vite.config.ts | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/config/configReader.ts b/frontend/config/configReader.ts index 464371ca1..20d28f81c 100644 --- a/frontend/config/configReader.ts +++ b/frontend/config/configReader.ts @@ -1,3 +1,5 @@ +/// + import { readFile } from "fs/promises"; async function read(path: string, sectionName: string, fieldName: string) { diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 3a43af833..5bc90388e 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -1,5 +1,6 @@ +/// + import react from "@vitejs/plugin-react"; -// @ts-ignore import path from "path"; import { defineConfig, loadEnv } from "vite"; import checker from "vite-plugin-checker";