Universal Bundler String Replacement Plugin
JSON →unplugin-replace is a universal bundler plugin designed to replace targeted strings within files across various build tools, including Vite, Rollup, esbuild, and Webpack. It is currently at version 0.8.0 and typically follows a frequent release cadence, often introducing breaking changes or new features with minor version bumps. The plugin builds upon the core functionality of `@rollup/plugin-replace` but extends it with additional capabilities, notably supporting regular expression patterns for the `find` option. Its key differentiator is its `unplugin` architecture, allowing a single plugin to be used across multiple bundlers, simplifying configuration in poly-bundler environments. It provides a flexible API for string and regex-based replacements, crucial for environment variable injection, feature flag toggling, or code obfuscation during the build process.
Traffic · last 30 days ↓50% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France · 🇬🇧 United Kingdom