next.js
3c42dfb3 - Turbopack: Document automatic Babel config support (#84002)

Commit
169 days ago
Turbopack: Document automatic Babel config support (#84002) ~I'm looking for review/feedback, but **DO NOT MERGE UNTIL NEXT 16.0 IS RELEASED.** This is not supported on 15.5, and merging these docs now would be confusing to users. If you want to try it out, use a recent canary release.~ I've been informed that docs are not currently tracking canary, so this is safe to merge. https://github.com/vercel/next.js/pull/82676 adds support for automatically enabling Babel if a babel config is found. Previously we'd exit the process with a hard error explaining that Babel is not supported. Technically you could previously manually configure `babel-loader`, but we had heuristics to detect and warn against that, and you'd need to use a different path for the config file to work around our error message, so it didn't really work properly. (This seems like it was a mistake/oversight) ## Rendered <img src="https://app.graphite.dev/user-attachments/assets/1b4712ba-c2f3-4b02-81ec-f1f9267a545e.png" width=700> <img src="https://app.graphite.dev/user-attachments/assets/6ce60399-8623-4357-8cc1-6443d23eb3c2.png" width=700> <img src="https://app.graphite.dev/user-attachments/assets/36ae8a63-5429-4134-bafd-e0f52b34f718.png" width=700>
Author
bgw bgw
Parents
Loading