Skip to content

Commit

Permalink
Turbopack: remap next/head on client in App Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jridgewell committed Sep 15, 2023
1 parent 1e33253 commit 6f6fa2d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/next-swc/crates/next-core/src/next_import_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ pub async fn get_next_client_import_map(
"react-server-dom-webpack/",
request_to_import_mapping(app_dir, "next/dist/compiled/react-server-dom-webpack/*"),
);
import_map.insert_exact_alias(
"next/head",
request_to_import_mapping(project_path, "next/dist/client/components/noop-head"),
);
import_map.insert_exact_alias(
"next/dynamic",
request_to_import_mapping(project_path, "next/dist/shared/lib/app-dynamic"),
Expand Down

0 comments on commit 6f6fa2d

Please sign in to comment.