An esbuild plugin that removes import.meta.vitest references and associated code blocks before compilation, preventing test code from leaking into production builds. Current stable version is 0.5.1, with no fixed release cadence. Key differentiator: lightweight alternative to esbuild's built-in drop feature or conditional compilation, with support for file filtering via regex. Ships TypeScript type definitions. Requires Node >= 18.0.0. Known issue: JSDoc comments around import.meta.vitest are not stripped.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Package exports ESM only; CommonJS require() will fail.
Named export, not default export.
Type import only for TypeScript users; not a runtime export.
Demonstrates basic usage with esbuild build, stripping import.meta.vitest from the output.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.