no log: Fix type issues in the vite config builder

This commit is contained in:
LASER-Yi 2022-03-29 00:46:55 +08:00
parent 8e07585084
commit 3f1d5ae623
No known key found for this signature in database
GPG Key ID: BB28903D50A1D408
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,5 @@
/// <reference types="node" />
import { readFile } from "fs/promises";
async function read(path: string, sectionName: string, fieldName: string) {

View File

@ -1,5 +1,6 @@
/// <reference types="node" />
import react from "@vitejs/plugin-react";
// @ts-ignore
import path from "path";
import { defineConfig, loadEnv } from "vite";
import checker from "vite-plugin-checker";