1 2 3 4 5
import path from "path"; import { fileURLToPath } from "url"; export const __filename = fileURLToPath(import.meta.url); export const __dirname = path.dirname(__filename);