Create a Babel configuration with presets, plugins, and environment overrides.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Selected presets and plugins are serialized into a configuration object, with environment overrides nested under env. The output describes transforms but does not install packages or run Babel.
Env: browser Typescript: true React: true Modules: auto Targets: > 0.25%, not dead Decorators: false Format: json
{
"presets": [
[
"@babel/preset-env",
{
"targets": "> 0.25%, not dead",
"useBuiltIns": "usage",
"corejs": 3
}
],
"@babel/preset-typescript",
[
"@babel/preset-react",
{
"runtime": "automatic"
}
]
]
}
JavaScript projects, test runners, and library builds create Babel configs.