UNPKG

@modern-js/module-tools

Version:

Simple, powerful, high-performance modern npm package development solution.

10 lines (7 loc) 318 B
import path from 'path'; // Shim globals in esm bundle import { fileURLToPath } from 'url'; const getFilename = () => fileURLToPath(import.meta.url); const getDirname = () => path.dirname(getFilename()); export const __dirname = /* @__PURE__ */ getDirname(); export const __filename = /* @__PURE__ */ getFilename();