This means that by default we support all syntax in ESNext.
Browserslist (opens in a new tab) has become an industry standard for defining which browsers you plan to target. To make use of it, you can add a
browserslist field to your
"last 1 version",
Turbopack supports Browserslist out-of-the-box. We pass the information we find in your
package.json to SWC, which handles
browserslist support (opens in a new tab) for us.
This means you can feel comfortable using Turbopack to target legacy browsers, or deciding to only ship code to modern browsers.
Turbopack is available in beta preview with a dev server, which uses a pre-set minimal browserslist to minimize transformation during development. In a future release, Turbopack will build apps for production targeting your defined browserslist.
Babel (opens in a new tab) allows you to add custom transformations to your code to provide custom syntax, including support for early language proposals.
In the future, Babel support will be provided via plugins.