fix token-speed plugin

This commit is contained in:
musistudio
2026-01-02 21:08:11 +08:00
parent e2bd0397b4
commit e9ced9e98c
3 changed files with 7 additions and 3 deletions
+1
View File
@@ -8,6 +8,7 @@ import { pathAliasPlugin } from "./esbuild-plugin-path-alias";
const watch = process.argv.includes("--watch");
// Get the absolute path to the src directory (ES module compatible)
// @ts-ignore
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const baseUrl = path.resolve(__dirname, "..");