Test your Babel knowledge with a free interactive quiz — 20 questions with answers and explanations. No signup needed to play.
Question 1/12Score 0
What is the practical difference between `@babel/preset-env`'s `targets` set to `"defaults"` versus a very old target like `"ie 11"`?
In this round
What is the practical difference between `@babel/preset-env`'s `targets` set to `"defaults"` versus a very old target like `"ie 11"`?
What does `@babel/preset-typescript` do?
What is `@babel/preset-react` used for?
What does `@babel/preset-env` do?
What is a Babel "macro" (e.g. via `babel-plugin-macros`)?
What is the main purpose of Babel?
What does the `browserslist` configuration (in `package.json` or `.browserslistrc`) have to do with Babel?
What is a "Babel plugin order" gotcha to be aware of when configuring multiple plugins?
Why does using the "automatic" JSX runtime (`@babel/preset-react` with `runtime: "automatic"`) mean you no longer need to write `import React from "react"` in every JSX file?
What is the difference between a `.babelrc` file and a `babel.config.js` (or `.json`) file?
What is `@babel/plugin-transform-runtime` used for, and how does it differ from just using `@babel/polyfill` (or core-js directly) globally?
Why might a modern project using Vite, esbuild, or SWC choose not to use Babel at all for its build pipeline?