Read a Babel configuration: presets and plugins in the order they run, what each notable one does, and why an env block replaces your plugin list.
Waiting for a Babel configuration
Nothing is uploaded. Paste the file, or load an example.
@babel/preset-env without targets transforms down to ES5 — the broadest and largest output there is, for browsers nobody is using. Setting targets is usually the single biggest reduction available to a Babel build, and nothing warns you.
Paste a Babel configuration to see what it actually does.
This reads one configuration object. Babel resolves babel.config.js, .babelrc files up the tree, and extends at build time, and none of that happens here — so a preset supplied by a framework or a parent config is invisible. A JavaScript config is refused rather than executed: running it is how a configuration file becomes arbitrary code. Nothing is compiled, so this cannot tell you what the output would look like.
Babel Configuration Inspector runs entirely on your device — your configuration is parsed in your browser and nothing is compiled or uploaded
You’re on the Free plan. Compare plans
@babel/preset-env with no targets compiles everything down to ES5. Not a safe default — the broadest possible output, roughly double the size, carrying helpers for syntax every browser in use has supported for years. Setting targets is usually the single biggest reduction available to a Babel build, and nothing in the toolchain warns you about it.
env and overrides blocks replace arrays rather than merging them. A test environment that lists one plugin gets that one plugin and none of the ones at the top level, which is why a test suite fails under Babel with syntax errors for syntax that works everywhere else in the project.
Order is not the order written. Plugins run before presets, plugins run first to last, and presets run last to first — so a preset appended to the array runs before the ones above it. The run position is shown next to each entry rather than left to be remembered.
Because it transforms to ES5 — the lowest common denominator — adding helpers and polyfill-style code for features that are universally supported. Setting targets to something realistic typically removes a large fraction of the output with no behavioural change.
Because env blocks replace arrays instead of merging them. If env.test lists plugins, that list is the whole list for test runs. Repeating the shared entries there is the usual fix.
No. @babel/preset-typescript strips types without checking them, so tsc --noEmit has to run separately or type errors reach production. This is the most common misunderstanding when a project moves its builds to Babel.
Because reading it means executing it, and a configuration file that runs arbitrary code is not something to evaluate in a browser tab. Convert the object to JSON, or paste the resolved object.
No. Nothing is compiled here. This reads the configuration and explains what it asks Babel to do.
If a tool here saved you some time, you can put something towards the hosting.Buy me a coffee, on Ko-fi, opens in a new tab