Preparing for system design interviews?  Try bugzed.com →

esbuild-plugin-file-path-extensions

JSON →
library 2.1.4 ·javascript
verified Jun 18, 2026

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.

total hits 15
actors 5 distinct systems
last hit 26d ago AhrefsBot
GPTBot
4
Amazonbot
4
ClaudeBot
3
Script
1

top countries 🇺🇸 United States · 🇫🇷 France · 🇩🇪 Germany · 🇨🇦 Canada