An ESBuild plugin (v1.0.23) that fixes import paths in bundleless ESBuild/tsup builds by resolving TypeScript path aliases, replacing directory imports with explicit index file paths, and appending correct file extensions. Released actively, it combines three sub-plugins (fixAliasPlugin, fixFolderImportsPlugin, fixExtensionsPlugin) and an optional writeFilePlugin for memory-based builds. Key differentiator: solves common issues when bundling is disabled and output files need correct relative imports for Node.js or browser consumption.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Named export, not default. Works with ESM and CJS via separate entry points.
Named export, available as sub-export. CommonJS require may fail if package is ESM-only in future versions.
Separate file, not exported from main entry; used in the recommended esbuild.mjs pattern.
Demonstrates using fixImportsPlugin with writeFilePlugin in an ESBuild script that fixes import paths in bundleless builds.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.