Configure options below — the preview updates in real time.
Preset collections to activate. Presets are shareable sets of Babel plugins and configuration.
An array of presets to activate during compilation. Each preset is a collection of plugins.
Individual transformation plugins to activate during compilation.
An array of plugins to activate. Plugins perform specific code transformations.
Options that control how Babel resolves and loads configuration files.
Defines how Babel chooses its project root. 'upward' is useful for monorepos.
The current active environment used to resolve env-specific configuration keys.
Additional packages/directories to consider as root when loading .babelrc files.
Explicit path to the project-wide config file, or leave empty for auto-detection.
A path to another Babel configuration file to inherit settings from.
Define which platforms and browsers your code needs to support.
Browserslist-compatible query string or object describing target environments.
The environment name to pass to Browserslist to resolve the target query.
Control generation and configuration of source maps.
Controls generation of source maps. 'inline' appends as data URI, 'both' returns map and appends comment.
Sets the file name used in the sources[0] array of the returned source map.
The root path from which all source maps are resolved relative to.
Control how Babel formats the generated output code.
Omit superfluous whitespace. 'auto' enables for files exceeding 500KB.
A comment string attached before all non-user injected code (Babel helpers).
A comment string attached after all non-user injected code.
Configure how Babel parses the source code.
How the code should be parsed. 'unambiguous' guesses based on import/export presence.
Set assumptions Babel can make about your code to produce smaller output (e.g. noDocumentAll, iterableIsArray, setPublicClassFields).
AMD / UMD / SystemJS module configuration for explicit module IDs.
Specify a custom name for the module ID to be injected.
A prefix appended to the AMD module formatter filename on module definitions.
Control which files Babel processes or ignores.
A file must match this condition to be compiled by Babel.
Synonym for test. Limits execution to matched paths.
Files matching this condition are skipped by Babel entirely.
Array of conditions. If a file matches, Babel discards the compilation entirely.
If specified, Babel will ONLY compile files that match these conditions.
Advanced compilation and behavior settings.
The filename associated with the code being compiled. Used by plugins and source map generators.
Filename relative to sourceRoot.
The working directory that all paths in programmatic options will be resolved relative to.
The initial path for processing, used as the base for project-wide configurations.
1module.exports = {};