Unverified Commit b7e2a28d authored by Tobias Koppers's avatar Tobias Koppers Committed by GitHub

add missing alias for next/dynamic in app dir (#49199)

### What?

RSC also needs a different next/dynamic on client side
Co-authored-by: 's avatarJiachi Liu <inbox@huozhi.im>
Co-authored-by: 's avatarkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
parent 310407d3
...@@ -101,6 +101,10 @@ pub async fn get_next_client_import_map( ...@@ -101,6 +101,10 @@ pub async fn get_next_client_import_map(
"react-server-dom-webpack/", "react-server-dom-webpack/",
request_to_import_mapping(app_dir, "next/dist/compiled/react-server-dom-webpack/*"), request_to_import_mapping(app_dir, "next/dist/compiled/react-server-dom-webpack/*"),
); );
import_map.insert_exact_alias(
"next/dynamic",
request_to_import_mapping(project_path, "next/dist/shared/lib/app-dynamic"),
);
} }
ClientContextType::Fallback => {} ClientContextType::Fallback => {}
ClientContextType::Other => {} ClientContextType::Other => {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment