fix dirname issue

This commit is contained in:
Evan Simkowitz 2024-09-16 15:58:35 -07:00
parent f0e7babec4
commit 822920bd2c
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ function getWaveHomeDir() {
}
function getElectronAppBasePath(): string {
return path.dirname(__dirname);
return path.dirname(import.meta.dirname);
}
function getGoAppBasePath(): string {

View File

@ -2,7 +2,7 @@
"include": ["frontend/**/*", "emain/**/*"],
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"module": "es2020",
"jsx": "preserve",
"esModuleInterop": true,
"skipLibCheck": true,