babel-plugin-inline-json

JSON →
library 2.1.0 ·javascript
verified May 27, 2026

A Babel plugin that inlines values from JSON files (e.g., config files) at build time, replacing require() calls to matched files with the actual JSON values. Current stable version is 2.1.0, with infrequent releases. Key differentiator: simple static replacement without runtime overhead, but does not work if the require argument is an identifier or template literal. Alternative to Webpack's DefinePlugin for Babel-only workflows.

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

top countries 🇺🇸 United States · 🇩🇪 Germany · 🇨🇦 Canada · 🇸🇬 Singapore · 🇮🇹 Italy