rollup-plugin-consts
JSON →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.
Traffic · last 30 days ↑0% vs prev 7d
total hits 11
actors 4 distinct systems
last hit 4d ago Bingbot
top countries 🇺🇸 United States · 🇨🇦 Canada
Resources
API endpoints
full doc /v1/registry/rollup-plugin-consts