Fix compilation of next/dynamic with `ssr: false` in App Router (#54411)
For the server compilation, we currently transpile the dynamic import expression to `null` if `ssr` is disabled. However to make the Server Actions layer work (as it can be created again from a Client Component), we can't do that optimization. This PR changes it to always keep that import expression when `react_server_components` (App Router) is enabled, no matter which layer it's on. Closes #52672.
Showing
Please
register
or
sign in
to comment