babel-plugin-inline-constants

JSON →
library 5.0.0 ·javascript
verified May 27, 2026

Babel plugin (v5.0.0) to inline constant values from imported modules. Supports ESM (import) and CJS (require). Evaluates specified modules with Node to retrieve primitive values (numbers, strings, booleans, null) and replaces references directly in code for better gzip compression. TypeScript types included, ESM-only, Node 18+. Similar to babel-plugin-transform-define but focuses on module-exported constants.

total hits 25
actors 8 distinct systems
last hit 1d ago AhrefsBot
Amazonbot
4
MetaBot
4
ByteDance
3
GPTBot
2
Script
1
Search engines
1
Humans
2

top countries 🇺🇸 United States · 🇩🇪 Germany · 🇸🇬 Singapore · 🇨🇦 Canada · 🇫🇷 France