@storm-software/esbuild
Version:
A package containing `esbuild` utilities for building Storm Software libraries and applications
10 lines (7 loc) • 328 B
JavaScript
// Shim globals in esm bundle
import path from "node:path";
import { fileURLToPath } from "node:url";
const getFilename = () => fileURLToPath(import.meta.url);
const getDirname = () => path.dirname(getFilename());
export const __dirname = /* @__PURE__ */ getDirname();
export const __filename = /* @__PURE__ */ getFilename();