esbuild-plugin-text-replace

JSON →
library 1.3.0 ·javascript maintenance
verified May 1, 2026

An esbuild plugin for replacing text or regex patterns in files before bundling. Current stable version is 1.3.0. It supports file filtering via regex, namespace targeting, and the standard String.prototype.replaceAll pattern syntax (including replacer functions). Key differentiators: lightweight (no heavy dependencies), supports esbuild pipe mode for integration with other plugins, and requires Node >=10.1.0. Use it for build-time substitutions like version strings, transforming imports, or injecting constants. Not actively maintained (last release 2021).

total hits 7
actors 2 distinct systems
last hit 4d ago AhrefsBot
GPTBot
2
Humans
2

top countries 🇨🇦 Canada · 🇺🇸 United States · PT