esbuild-plugin-jscc
JSON →JSCC plugin for esbuild that enables conditional compilation using JSCC directives (e.g., //#if, //#ifdef, //#endif) in JavaScript and TypeScript bundles. Version 1.1.2, actively maintained. Integrates seamlessly with esbuild's build pipeline, allowing you to include or exclude code blocks at build time based on predefined or environment variables. Useful for toggling debug code, feature flags, or platform-specific snippets without runtime overhead. Unlike alternatives like preprocessor or esbuild-plugin-condition, it leverages JSCC syntax familiar to developers using JSCC with other bundlers.
Traffic · last 30 days ↓67% vs prev 7d
total hits 7
actors 2 distinct systems
last hit 5d ago AhrefsBot
top countries 🇨🇦 Canada · 🇺🇸 United States · 🇬🇧 United Kingdom · 🇸🇬 Singapore
Resources
API endpoints
full doc /v1/registry/esbuild-plugin-jscc