kentcdodds/babel-plugin-preval
🐣 Pre-evaluate code at build-time observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3346
- days_rel: n/a
- days_push: 1673
- n_releases_24m: 0
Adoption not part of the score
1363 stars · 48 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Babel plugin that pre-evaluates JavaScript code at build time, replacing expressions with their computed results. It lets you run Node.js code (like filesystem reads) during compilation and inline the exported value into your bundle.
Use cases
- inline file contents into a bundle at build time
- run node code during compilation instead of runtime
- read the filesystem in browser-targeted code
- precompute constants at build time
- evaluate code with babel-plugin-macros
When to avoid
- your build does not use Babel
- the evaluated code depends on runtime state
- you need evaluation in non-JavaScript toolchains like Vite or esbuild without Babel
Facets
plugin · maturity maintenance
compiler build-tool developer-tools developer-tools web-development frontend babel-plugin build-time-evaluation precompile babel-plugin-macros nodejs javascript
2 sources
- readme: https://github.com/kentcdodds/babel-plugin-preval · fetched 2026-08-28 · 6c7cc50956fc
- registry_npm: https://registry.npmjs.org/babel-plugin-preval · fetched 2026-08-29 · e7f6df044000
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| kentcdodds/babel-plugin-preval | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="kentcdodds/babel-plugin-preval")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem