Preparing for system design interviews?  Try bugzed.com →

rollup-plugin-consts

JSON →
library 1.2.0 ·javascript maintenance
verified Jun 18, 2026

Import build-time constants (e.g., NODE_ENV, version) as ES module imports in Rollup. Unlike string-replacement plugins (rollup-plugin-replace), it uses a virtual module prefix 'consts:' for cleaner code and TypeScript support. Latest version 1.2.0, stable and unmaintained since 2020. Ships with TypeScript types. Peer dep rollup >=1.15.0 <4. ESM-only, no CommonJS.

total hits 12
actors 5 distinct systems
last hit 25d ago AhrefsBot
GPTBot
4
ClaudeBot
2
Script
1
Humans
1

top countries 🇺🇸 United States · 🇬🇧 United Kingdom · 🇩🇪 Germany · 🇨🇦 Canada · 🇨🇳 China