You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/01-app/03-api-reference/05-config/01-next-config-js/turbopack.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,13 +55,13 @@ The following options are available for the `turbopack` configuration:
55
55
56
56
The following loaders have been tested to work with Turbopack's webpack loader implementation, but many other webpack loaders should work as well even if not listed here:
-[`babel-loader`](https://www.npmjs.com/package/babel-loader)[_(Configured automatically if a Babel configuration file is found)_](/docs/app/api-reference/turbopack#language-features)
|**JavaScript & TypeScript**|**Supported**| Uses SWC under the hood. Type-checking is not done by Turbopack (run `tsc --watch` or rely on your IDE for type checks). |
|**CommonJS**|**Supported**|`require()` syntax is handled out of the box. |
46
-
|**ESM**|**Supported**| Static and dynamic `import` are fully supported. |
47
-
|**Babel**| Partially Unsupported | Turbopack does not include Babel by default. However, you can [configure `babel-loader` via the Turbopack config](/docs/app/api-reference/config/next-config-js/turbopack#configuring-webpack-loaders). |
|**JavaScript & TypeScript**|**Supported**| Uses SWC under the hood. Type-checking is not done by Turbopack (run `tsc --watch` or rely on your IDE for type checks). |
|**CommonJS**|**Supported**|`require()` syntax is handled out of the box. |
46
+
|**ESM**|**Supported**| Static and dynamic `import` are fully supported. |
47
+
|**Babel**|**Supported**| Starting in Next.js 16, Turbopack uses Babel automatically if it detects [a configuration file][babel-config]. Unlike in webpack, SWC is always used for Next.js's internal transforms and downleveling to older ECMAScript revisions. Next.js with webpack disables SWC if a Babel configuration file is present. Files in `node_modules` are excluded, unless you [manually configure `babel-loader`][manual-loader]. |
0 commit comments