Fast Refresh incompatible with top-level await in Next.js

Has anyone else noticed this?

If you use a TLA anywhere in your project or if any of your deps contain one, then Fast Refresh will break for your entire Nextjs project and every file save will trigger a rull reload.

I raised an issue for this but unfortunately haven’t heard back after 3 months.

Tried to debug it myself but the Nextjs codebase is quite a beast!