perf: 使用/** */替换//注释,对编辑器的智能提示更友好

This commit is contained in:
xiaoxian521
2022-09-11 16:46:01 +08:00
parent fafbdc7c69
commit f14889ef56
15 changed files with 50 additions and 51 deletions

View File

@@ -5,15 +5,15 @@ import { warpperEnv, regExps } from "./build";
import { getPluginsList } from "./build/plugins";
import { UserConfigExport, ConfigEnv, loadEnv } from "vite";
// 当前执行node命令时文件夹的地址工作目录
/** 当前执行node命令时文件夹的地址工作目录 */
const root: string = process.cwd();
// 路径查找
/** 路径查找 */
const pathResolve = (dir: string): string => {
return resolve(__dirname, ".", dir);
};
// 设置别名
/** 设置别名 */
const alias: Record<string, string> = {
"/@": pathResolve("src"),
"@build": pathResolve("build")