fix: unbuild version reduced to 2.0
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import fs from 'node:fs';
|
||||
import fsp from 'node:fs/promises';
|
||||
import { join } from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
|
||||
@@ -62,7 +63,7 @@ async function getLoadingRawByHtmlTemplate(loadingTemplate: string) {
|
||||
return;
|
||||
}
|
||||
|
||||
const htmlRaw = fs.readFileSync(loadingPath, 'utf8');
|
||||
const htmlRaw = await fsp.readFile(loadingPath, 'utf8');
|
||||
return htmlRaw;
|
||||
}
|
||||
|
||||
|
@@ -4,7 +4,7 @@ import { join } from 'node:path';
|
||||
|
||||
import { fs } from '@vben/node-utils';
|
||||
|
||||
import * as dotenv from 'dotenv';
|
||||
import dotenv from 'dotenv';
|
||||
|
||||
/**
|
||||
* 获取当前环境下生效的配置文件名
|
||||
|
Reference in New Issue
Block a user