perf: 增加全局配置本地加载的控制

This commit is contained in:
levius
2024-06-19 13:09:48 +08:00
parent 13e7a13e9d
commit 36143438f6
3 changed files with 31 additions and 18 deletions

View File

@@ -38,6 +38,7 @@ const pathResolve = (dir = ".", metaUrl = import.meta.url) => {
/** 设置别名 */
const alias: Record<string, string> = {
"@": pathResolve("../src"),
"@public": pathResolve("../public"),
"@build": pathResolve()
};