Fix esmodule not having __dirname defined in scope
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
import path from "path";
|
||||
import Field from "./field";
|
||||
import { fileURLToPath } from "url";
|
||||
|
||||
import Field from "./field.js";
|
||||
|
||||
let instance = null;
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
|
||||
class Config {
|
||||
constructor() {
|
||||
|
||||
Reference in New Issue
Block a user