Skip to content

Commit

Permalink
add comment for app-ssr condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ForsakenHarmony committed Jun 19, 2024
1 parent 28736e2 commit f7bf8ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ pub async fn get_server_resolve_options_context(
project_path,
project_path.root(),
ExternalPredicate::Only(Vc::cell(external_packages)).cell(),
// app-ssr can't have esm externals as that would make the module async on the server only
*next_config.import_externals().await? && !matches!(ty, ServerContextType::AppSSR { .. }),
);

Expand Down
4 changes: 1 addition & 3 deletions test/turbopack-dev-tests-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6118,9 +6118,7 @@
"esm-externals should return the correct SSR HTML for /ssr",
"esm-externals should return the correct SSR HTML for /static"
],
"failed": [
"esm-externals app url /client should return the correct SSR HTML"
],
"failed": [],
"pending": [],
"flakey": [],
"runtimeError": false
Expand Down

0 comments on commit f7bf8ee

Please sign in to comment.