{"library":"esbuild-plugin-fileloc","type":"library","category":null,"description":"An esbuild plugin that replaces __dirname, __filename, __line, __relativedirname, and __relativefilename with actual source file metadata at build time. Version 0.0.6, no release cadence documented. Unlike Node.js's __dirname (which resolves to the output file), this plugin provides the original source path, and the __line variable is unique among Node-like bundlers. Ships TypeScript declarations. Lightweight, no dependencies. Suitable for esbuild bundling projects that need source-level location globals.","language":"javascript","status":"active","version":"0.0.6","tags":["javascript","typescript"],"last_verified":"Mon Apr 27","install":[{"cmd":"npm install esbuild-plugin-fileloc","imports":["import filelocPlugin from 'esbuild-plugin-fileloc'","import filelocPlugin from 'esbuild-plugin-fileloc';\nesbuild.build({\n  plugins: [filelocPlugin()],\n})","/// <reference types=\"esbuild-plugin-fileloc\" />"]},{"cmd":"yarn add esbuild-plugin-fileloc","imports":[]},{"cmd":"pnpm add esbuild-plugin-fileloc","imports":[]}],"homepage":null,"github":"https://github.com/martonlederer/esbuild-plugin-fileloc","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/esbuild-plugin-fileloc","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}