From 822920bd2c3a6eb21e19f8779a62e1e5be0462d5 Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Mon, 16 Sep 2024 15:58:35 -0700 Subject: [PATCH] fix dirname issue --- emain/platform.ts | 2 +- tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/emain/platform.ts b/emain/platform.ts index b939ba9c..f40f3163 100644 --- a/emain/platform.ts +++ b/emain/platform.ts @@ -41,7 +41,7 @@ function getWaveHomeDir() { } function getElectronAppBasePath(): string { - return path.dirname(__dirname); + return path.dirname(import.meta.dirname); } function getGoAppBasePath(): string { diff --git a/tsconfig.json b/tsconfig.json index c2d92249..d782c63c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "include": ["frontend/**/*", "emain/**/*"], "compilerOptions": { "target": "es6", - "module": "commonjs", + "module": "es2020", "jsx": "preserve", "esModuleInterop": true, "skipLibCheck": true,