Bun and esbuild plugin that prints resolved import paths during bundling. Current version 2.0.0, released occasionally. Useful for debugging dependency resolution or auditing bundle contents. Differs from other logging plugins by supporting both Bun and esbuild with same API. Minimal configuration: just register and log. Works with both ESM and CJS outputs.
npm install bun-plugin-print-importsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to register the plugin with Bun or esbuild to print resolved imports during build.
Switch to ESM import syntax; if using CJS, stick with 1.x or use a bundler that can handle ESM.
Use plugin({ quiet: true }) to suppress logs, or redirect stdout.Replace filter with include/exclude arrays of glob patterns.
Ensure dynamic imports use string literals for Bun to resolve.
Update to Node 18+ or Bun 1.0+.
Run `bun add bun-plugin-print-imports` or `npm install bun-plugin-print-imports`.
Use `import { plugin } from 'bun-plugin-print-imports'` or `import defaultPlugin from 'bun-plugin-print-imports'`.Ensure you call plugin() and pass options if needed; check import syntax.
Install esbuild if using esbuild, ensure Bun is up to date.
No dependency data recorded yet.