{"library":"esbuild-plugin-file-path-extensions","type":"library","category":null,"description":"This esbuild plugin automatically adds file extensions to import/export specifiers in bundled JavaScript output, addressing the common requirement for explicit extensions when targeting Node.js ESM or other environments that enforce extension inclusion. Version 2.1.4 (npm) requires Node >=14 and npm >=7. It ships with TypeScript types and has zero runtime dependencies. Unlike manual post-processing or bundler-agnostic solutions, this integrates directly as an esbuild plugin, offering fine-grained control over which extension (.js, .mjs, .cjs) to append based on the build target. The plugin handles dynamic imports, re-exports, and preserves URL imports. It sees active maintenance with regular updates aligned to esbuild API changes.","language":"javascript","status":"active","version":"2.1.4","tags":["javascript","esbuild","esbuild plugin","esbuild-plugin","typescript"],"last_verified":"Mon Apr 27","install":[{"cmd":"npm install esbuild-plugin-file-path-extensions","imports":["import filePathExtensions from 'esbuild-plugin-file-path-extensions'","import type { Plugin } from 'esbuild'\nimport filePathExtensions from 'esbuild-plugin-file-path-extensions'","filePathExtensions({ inFileExtension: '.ts', outFileExtension: '.mjs' })"]},{"cmd":"yarn add esbuild-plugin-file-path-extensions","imports":[]},{"cmd":"pnpm add esbuild-plugin-file-path-extensions","imports":[]}],"homepage":null,"github":"https://github.com/favware/esbuild-plugin-file-path-extensions","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/esbuild-plugin-file-path-extensions","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}