feat: 破坏性更新 cjs to es

This commit is contained in:
手瓜一十雪
2024-05-22 19:58:45 +08:00
parent f65b2be06f
commit 442342d106
17 changed files with 75 additions and 13 deletions

View File

@@ -2,6 +2,12 @@ import log4js, { Configuration } from 'log4js';
import { truncateString } from '@/common/utils/helper';
import path from 'node:path';
import { SelfInfo } from '@/core';
import { dirname } from "node:path"
import { fileURLToPath } from "node:url"
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
export enum LogLevel {
DEBUG = 'debug',