Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed May 12, 2024
1 parent 6e59e6e commit 7a3dfd6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/next-swc/crates/next-core/src/next_edge/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,6 @@ pub async fn get_edge_resolve_options_context(
get_next_edge_import_map(project_path, ty, next_config, execution_context);

let ty = ty.into_value();
let invalid_client_only_resolve_plugin = get_invalid_client_only_resolve_plugin(project_path);
let invalid_styled_jsx_client_only_resolve_plugin =
get_invalid_styled_jsx_resolve_plugin(project_path);

let mut plugins = match ty {
ServerContextType::Pages { .. }
Expand All @@ -115,8 +112,8 @@ pub async fn get_edge_resolve_options_context(
| ServerContextType::Middleware { .. }
| ServerContextType::Instrumentation => {
vec![
Vc::upcast(invalid_client_only_resolve_plugin),
Vc::upcast(invalid_styled_jsx_client_only_resolve_plugin),
Vc::upcast(get_invalid_client_only_resolve_plugin(project_path)),
Vc::upcast(get_invalid_styled_jsx_resolve_plugin(project_path)),
]
}
};
Expand Down

0 comments on commit 7a3dfd6

Please sign in to comment.