REA babel.config.js notes (unofficial)

Last updated: · By the RepoRead editorial team · Unofficial guide
Quick answer

babel.config.js (and .mjs / .cjs) pins Babel JS-module transform identity. In REA 6.7.x, treat selected preset/plugin pins as Evidence beside archive/package routes — complementing rea-babel-config-json without inventing APIs.

Mental model

  1. Authorize the babel.config.js / .mjs / .cjs (+ artifacts you hold).
  2. Quote selected presets / plugins / env / overrides pins you actually see.
  3. JSON cousin → rea-babel-config-json; babelrc → rea-babelrc; SWC → rea-swc-config.
  4. Bind absolute paths honestly → rea-absolute-paths.
  5. Do not invent a Babel API REA never called.

Minimal path

# authorized babel.config.js / .mjs / .cjs (+ artifact you hold)
# quote selected presets/plugins/env pins into case notes
# cousins → babel-config-json / babelrc / swc-config
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_babel_config .

Compare

ArtifactHonest posture
babel.config.js/.mjs/.cjsJS-module transform identity facts
JSON cousinrea-babel-config-json
babelrc cousinrea-babelrc
Evidence binderrea-evidence-explained

Scope we will not cover

  • No inventing inspect_babel_config / automatic Babel runs.
  • No credential theft from config secrets / env.
  • No pirate redistribution of paid packages.
  • No crack framing via Babel pins.

RepoRead is unofficial. Prefer config honesty + DISCLAIMER.md.

FAQ

How is this different from rea-babel-config-json / rea-babelrc?

rea-babel-config-json covers babel.config.json; rea-babelrc covers .babelrc*. This page zooms on babel.config.js / .mjs / .cjs identity — it does not overwrite those pages.

Is there inspect_babel_config in 6.7.0?

Not assumed. Quote presets/plugins you actually open. Do not invent inspect_babel_config.

Does REA run Babel or talk to transform SaaS?

No. Local trees only. No credential theft.

babel.config.js vs babel.config.json vs .babelrc.js?

Label Evidence by the file present. Quote what you open.

npm version checked?

rea-agents 6.7.0 (re-checked 2026-10-24).

Sources